Closed GoogleCodeExporter closed 9 years ago
Hi,
At first as you have seen in 1.0.0, ConverterTypeVia.ITEXT doesn't exists and
it is replaced with ConverterTypeVia.XWPF
I have tested the zip and it works well? Have you tried with clean project
(just with JARs coming from the zip?) Are you sure to add in your claspath the
whole JARs?
ConvertDocxResumeToPDF, DocxProjectWithVelocityList2PDF works for me? Have you
problem with this samples?
Perhaps your problem is with your docx? If you have Eclipse, perhaps you could
attach your Java project and tell me which reports fails?
Regards Angelo
Original comment by angelo.z...@gmail.com
on 3 Dec 2012 at 3:27
It's ok with a new clean project and jars from docxandvelocity.converters-1.0.0
sorry for disturbing
Original comment by manudrag...@gmail.com
on 4 Dec 2012 at 11:02
Ok tha'ts cool. i close this isuue.
Regards Angelo
Original comment by angelo.z...@gmail.com
on 4 Dec 2012 at 1:08
I'm getting this problem with mine:
java.lang.NoSuchMethodError:
org.apache.poi.xwpf.usermodel.XWPFParagraph.getBody()Lorg/apache/poi/xwpf/usermo
del/IBody;
at org.apache.poi.xwpf.converter.core.utils.StylesHelper.getEmbeddedTableCell(StylesHelper.java:73)
at org.apache.poi.xwpf.converter.core.styles.paragraph.AbstractParagraphValueProvider.getParentTableCell(AbstractParagraphValueProvider.java:116)
at org.apache.poi.xwpf.converter.core.styles.paragraph.AbstractParagraphValueProvider.getParentTableCell(AbstractParagraphValueProvider.java:41)
at org.apache.poi.xwpf.converter.core.styles.AbstractValueProvider.getValueFromStyles(AbstractValueProvider.java:89)
at org.apache.poi.xwpf.converter.core.styles.AbstractValueProvider.internalGetValue(AbstractValueProvider.java:61)
at org.apache.poi.xwpf.converter.core.styles.AbstractValueProvider.getValue(AbstractValueProvider.java:41)
at org.apache.poi.xwpf.converter.core.styles.XWPFStylesDocument.getParagraphNumPr(XWPFStylesDocument.java:423)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitParagraph(XWPFDocumentVisitor.java:278)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitBodyElements(XWPFDocumentVisitor.java:241)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.start(XWPFDocumentVisitor.java:193)
at org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:55)
at org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:37)
at org.apache.poi.xwpf.converter.core.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:45)
at easy.ConvertDocxBigToPDF.main(ConvertDocxBigToPDF.java:39)
My code is:
File inFile = new File( "D:\\3pageDoc.docx" );
InputStream in = new FileInputStream(inFile);
// 1) Load docx with POI XWPFDocument
XWPFDocument document = new XWPFDocument(in);
// 2) Convert POI XWPFDocument 2 PDF with iText
File outFile = new File( "D:/Converted_docx.pdf" );
outFile.getParentFile().mkdirs();
OutputStream out = new FileOutputStream( outFile );
PdfOptions options = PdfOptions.create().fontEncoding( "windows-1250" );
PdfConverter.getInstance().convert(document, out, options);
Original comment by dannypha...@gmail.com
on 21 Nov 2013 at 4:36
Original issue reported on code.google.com by
manudrag...@gmail.com
on 3 Dec 2012 at 2:54