xdocreport

Set encryption password for pdf in xdocreport

寵の児 提交于 2020-01-06 13:30:27
问题 How to set encryption password while converting odt file to pdf in xdocreport? I am referring to PDFWriter.setEncryption method in iText here. 回答1: XDocReport 1.0.4 (which will soon released) provides fr.opensagres.xdocreport.itext.extension. IPdfWriterConfiguration which gives you the capability to customize the iText PDFWriter. Here a sample which set encryption : org.odftoolkit.odfdom.converter.pdf.PdfOptions options = new PdfOptions(); options.setConfiguration( new IPdfWriterConfiguration

Set encryption password for pdf in xdocreport

孤人 提交于 2020-01-06 13:30:02
问题 How to set encryption password while converting odt file to pdf in xdocreport? I am referring to PDFWriter.setEncryption method in iText here. 回答1: XDocReport 1.0.4 (which will soon released) provides fr.opensagres.xdocreport.itext.extension. IPdfWriterConfiguration which gives you the capability to customize the iText PDFWriter. Here a sample which set encryption : org.odftoolkit.odfdom.converter.pdf.PdfOptions options = new PdfOptions(); options.setConfiguration( new IPdfWriterConfiguration

iText 5.5.0 with XDocReport 1.0.4

♀尐吖头ヾ 提交于 2019-12-24 07:29:29
问题 Can I use iText version 5.5.0 jar with XDocReort 1.0.4? Are they compatible? All the sample projects provided at https://code.google.com/p/xdocreport/downloads/list, seem to be using itext-2.1.7.jar. Is there any specific reason behind that? 回答1: XDocReport provides converters docx->pdf and odt->pdf based on iText 2.1.7 which is LGPL license although iText 5.5.0 provides a supported version under AGPL license. XDocReport is based on iText 2.1.7 for license reason . Perhaps it will be easy to

How to change font encoding when converting docx -> pdf with docx4j?

余生长醉 提交于 2019-12-22 18:28:22
问题 When I'm a converting docx document to pdf my national characters transform into "#" marks. Is there any way to set a font encoding for pdf documents? I used xdocreport in the past and it can handle that, but I had problems with images, headers and footers. Docx4j manages to do this, but not fonts. After conversion, fonts have ANSI encoding while I'd like to have windows-1250. Is there an option to set this? 回答1: My problem was - missing proper True Type Fonts on linux server. The default

How to change font encoding when converting docx -> pdf with docx4j?

为君一笑 提交于 2019-12-22 18:28:15
问题 When I'm a converting docx document to pdf my national characters transform into "#" marks. Is there any way to set a font encoding for pdf documents? I used xdocreport in the past and it can handle that, but I had problems with images, headers and footers. Docx4j manages to do this, but not fonts. After conversion, fonts have ANSI encoding while I'd like to have windows-1250. Is there an option to set this? 回答1: My problem was - missing proper True Type Fonts on linux server. The default

How to get document generation progress in XDocReport?

a 夏天 提交于 2019-12-08 09:18:36
问题 In our project, report generation can take a very long time. Is there a way to obtain number of generated pages while the document is processed? Simple progress bar is not enough, we need to show users that something is really happening. 回答1: XDocReport doesn't provide a kind of progress monitor . I think this idea could be interesting, please create an issue for that. It should be interesting too to know where report generation can take a very long time. The report process is : generate docx

How to change font encoding when converting docx -> pdf with docx4j?

情到浓时终转凉″ 提交于 2019-12-06 13:39:13
When I'm a converting docx document to pdf my national characters transform into "#" marks. Is there any way to set a font encoding for pdf documents? I used xdocreport in the past and it can handle that, but I had problems with images, headers and footers. Docx4j manages to do this, but not fonts. After conversion, fonts have ANSI encoding while I'd like to have windows-1250. Is there an option to set this? My problem was - missing proper True Type Fonts on linux server. The default fonts where inserted instead (without my code pages). I solved the problem installing the default Ms Windows