2,212 questions
2
votes
1
answer
64
views
iText7 SignatureValidator trips over /JBIG2Decode filter
I have the following simple code which tries to check the signatures in a document:
var stream = new FileStream("signed_with_jbig2decode.pdf", FileMode.Open);
var ltvDocument = new ...
0
votes
0
answers
42
views
How to enable kerning/ligatures (LayoutProcessor) with TTF loaded from Cloud Storage?
Library: OpenPDF 1.4.2 (com.lowagie.text.pdf)
Goal: Enable kerning and ligatures for TrueType/OTF fonts using LayoutProcessor (enableKernLiga) when rendering text via ColumnText/Paragraph.
Constraint: ...
0
votes
0
answers
72
views
XMP parser's validation has problems with duplicate properties
Library: itext7 8.0.5
XMP parser throws error: Duplicate property or field node 'pdf:Producer' (203)
Is there a way to tell XMPMetaFactory.ParseFromBuffer to be less strict during validation? What ...
-3
votes
1
answer
112
views
Mock iText 7.1.1 in application unit tests to avoid usage of commercial license
We are using iText 7.1.1 Commercial version for actual PDF generation in the application as follows,
Activate License on app startup, in some kind of initialization bean:
LicenseKeyVolumeConfigurer....
1
vote
0
answers
60
views
iText cannot read part of the PDF
I have a PDF file which I am reading using iText 7.x, but some of the text doesn't get read.
Code:
Rectangle rect = new(0, 0, 1100, 1100);
TextRegionEventFilter regionFilter = new(rect);
...
0
votes
1
answer
122
views
How to fix irregular column and row generation in a PDF table generated by iText
I'm trying to make a PDF table like the one in the top image below. The second image is what I'm getting. This is my first time using iText. I have the needed NuGet packages and I am using VB in ...
1
vote
1
answer
69
views
SVG added to PDF hides behind checkbox
I would like to add a check sign svg to an existing checkbox in the pdf.
Here is my code
var reader = new PdfReader(pathIn);
var writer = new PdfWriter(pathOut);
var pdfDoc = new PdfDocument(reader,...
0
votes
0
answers
103
views
iText 7 PDF/A signing error: "All the fonts must be embedded. This one is not: Helvetica"
I'm trying to sign a PDF document using iText 8.0.5 in C#, and the input file is PDF/A-compliant (created externally). During the signing process, I get the following error:
iText.Pdfa.Exceptions....
0
votes
0
answers
42
views
itext-pdfsweep-dotnet CleanUpRedactAnnotations() does not apply font or font size of redaction annotations
itext-pdfsweep-dotnet does not appear to apply the font or font size of the redaction annotation overlay text, as set by SetDefaultAppearance(), for pdfs that are not forms.
I tried creating redaction ...
1
vote
0
answers
108
views
C# Itext7:How to remove all short horizontal lines from a pdf
I want to remove all short horizontal lines from the PDF file.The sample pdf:
string outputPath = "output.pdf";
using (PdfWriter writer = new PdfWriter(outputPath))
using (PdfDocument pdfDoc ...
1
vote
1
answer
82
views
How to calculate the height occupied by a table in a PDF generated by JasperSoft Studio using iText 7 or any other libs (Java/Kotlin)?
I have a PDF file generated by JasperSoft Studio, which contains a table that is smaller than the size of an A4 page. The PDF is available to me as a byte array encodded as Base64 String in my code, ...
0
votes
1
answer
100
views
How to add a bitmap to the signature field of a digital signed pdf using iText7
With iText7 I am using SignerProperties and SignatureFieldAppearance to add a signature field to a digital signed document. WIth the SetContents function I add a text and a bitmap. The text shows up ...
1
vote
0
answers
101
views
Rendering MathJax when converting JS html to pdf with iText7 in C# .Net 8.0
I am trying to evaluate JS and convert from HTML to PDF with iText7 in C# with Selenium WebDrive and headless chrome following this example. I am doing this mainly to try and render Math equations ...
0
votes
1
answer
170
views
iText 7 Footer created with IEventHandler does not get tagged despite top-level PdfDocument.setTagged()
In my iText 7.1.11 generated PDF I have a Footer, done as an implementation of IEventHandler, and it works fine. There is also a pdfDocument.setTagged() at the top level to take care of the tagging.
...
0
votes
0
answers
80
views
iText 7 508 Issue "Font Not Embedded" despite embedding font
In my iText 7.1.11 generated PDF I only use two fonts, defined as global variables, and they are defined as follows:
timesNormalFont = PdfFontFactory.createFont(StandardFonts.TIMES_ROMAN, true);
...