itext7

iText 7 java.lang.NoSuchMethodError

我们两清 提交于 2019-11-27 08:46:39
问题 I just started developing a new function to convert HTML page to PDF. I use iText 7. Followed the instruction here!. And now i get the error Exception in thread "main" java.lang.NoSuchMethodError: com.itextpdf.layout.font.FontSet.getFonts()Ljava/util/Set; I have created pom.xml following the instruction here! but still received the same error. I use eclipse. I put the pom.xml in the WebContent folder and received the error. Same result when moved the pom.xml into the WEB-INF folder. Is the

How to display Arabic strings from RTL in PDF generated using itext 7 API?

我与影子孤独终老i 提交于 2019-11-27 08:29:23
问题 I'm struggling with this problem for hours now but I can't find a way out, the problem is that: I wrote a program that generate a pdf file using itext version 7 (and a lot of it) along with some statistics, every things is right till here, but when my pdf should contain some arabic strings they just appear from left to right, no matter what I've tried (changing fonts, using universal encodings, making the string inside a cell of table, using canvas, ...) I can't make them appear normally.

iText7 LtvVerification.addVerification not enabling LTV

二次信任 提交于 2019-11-27 04:45:50
问题 We are trying to make the signed signature LTV enabled. I am using the below code to add verification. When signature.isTsp() is false, the PDF says Signature is not LTV enabled , though in the other case (signature.isTsp() is true) it shows as valid. When we open the PDF and try to manually add verification info by right clicking on the signature it enables LTV without any issue. Not sure what we are missing here. Any input will be highly helpful. // Adds LTV-enabled information to the PDF