All Questions
Tagged with itextsharp or itext
13,404 questions
4 votes
0 answers
77 views
Find, Extract and Save Embedded XML File in PDF
I am currently trying to extract and save an embedded file from a PDF. It's about the German "ZUGFeRD" PDF (electronic invoice). In this PDF, there is a XML file named zugferd-invoice.xml or ...
Best practices
0 votes
0 replies
36 views
How to customize RegexBasedLocationExtractionStrategy to also return font information along with text location
I'm trying to develop a "template" processor which "replaces" tags (for instance $key1) with variable text. For this I plan to use RegexBasedLocationExtractionStrategy or a custom ...
Advice
0 votes
1 replies
112 views
Generating custom appearance for signature field using iText 9.0.5
I'm trying to create a custom signature appearance in iText9, the layout should be 2 thirds of (custom) text on the left side of the signature field and an image in the last third. This is how I ...
Best practices
0 votes
2 replies
64 views
Java.awt and itext.FontFactory font refactoring: What's the best way to refactor a large code base to a new font?
I am working with a large legacy application. Throughout the application, there are calls to generate PDFs with iText, or to generate text headers for charts etc. which utilize java.awt.Font to load ...
0 votes
1 answer
77 views
Crystal Reports PDF export produces large files and merged PDF size grows linearly
I am working on modernizing a legacy console application (.NET Framework 2.0 → 4.8). The application generates invoice PDFs using Crystal Reports. Previously to generate PDF we are using Acrobat PDF ...
0 votes
1 answer
75 views
Using iText 7 to create a pdf document from html with pictures that are larger than A4 paper. Images on their own pages that are same size as the img
I am using iText 7 to convert an html document to pdf. It works pretty well but images that are larger than the pdf page go outside of the page and that part cannot be seen when opening up the pdf ...
Advice
0 votes
1 replies
99 views
Replacing iText7 with iText - straight swap?
My WPF desktop app references iText7 v8.0.4 (+ iText7.bouncy-castle-adapter v8.0.4, which I assume is a dependency of it). Visual Studio shows that both packages are now deprecated and is telling me ...
1 vote
1 answer
75 views
PDF.js + iTextSharp: anonymization rectangles wrong on rotated (/Rotate) pages
I’m building a PDF anonymization feature: Frontend: PDF.js viewer where user draws blackout rectangles on a page. Backend: iTextSharp to draw black filled rectangles (anonymize). If the pdf has Rotate ...
3 votes
2 answers
119 views
PdfAcroForm doesn't set values with SetValue
I've been trying to set some fields values in a PDF with iText but I'm unable to set the fields, the value set is the same of the field name and that is not what I'm expecting. The code: private async ...
0 votes
1 answer
171 views
Is it possible to create a valid PAdES-LT certification signature with DocMDP level 1 (“No changes allowed”)?
I’m trying to find out whether it is possible to create a PAdES-LT certification signature while setting the DocMDP permission level to 1 (No changes allowed). I’ve tested adding the DSS in the same ...
0 votes
1 answer
95 views
Signing a PDF with a signature returned from an API [closed]
I've been searching and talking to ssl.com's AI assistant for days now and I'm trying to figure out how to sign a PDF using a hash instead of uploading the PDF bytes to their servers. It seems like ...
0 votes
0 answers
57 views
Exception found when using itextpdf TiffImage function
I got the following exception when using iTextPDF 5 to get the Image from Tiff. Any idea how to resolve it? ` Image img = Image.getInstance(myTiffFile); Caused by: com.itextpdf.text....
3 votes
3 answers
214 views
Storing biometric data in a PDF without breaking the digital signature
I'm developing a tool that stores a signer's biometric data inside a PDF together with the digital signature, but I'm unsure where this information should be embedded. The biometric data is captured ...
1 vote
0 answers
58 views
Issue width from xlsx (closed xml) to pdf (itextsharp)
I’m having an issue with the text font. I’m trying to convert an Excel file to PDF using ClosedXML and iTextSharp, and I want the text to fit perfectly inside each cell. However, sometimes the text ...
0 votes
1 answer
70 views
"Response Content-Length mismatch: too few bytes written (0 of 152295)" When copying pages from a PDF to another using iText
I'm trying to read a PDF as MemoryStream, and copy pages from that PDF to a new one. I'm using iText PdfReader and PdfWriter. var ms = new MemoryStream(); using PdfReader pdfReader = new ...