Questions tagged [itext]
Library to create and manipulate PDF documents in Java and C#. Use this tag for code using iText versions up to 5.5.x. For iText versions from 7.0.0 onwards a separate tag "itext7" is available. Remember to also add the tag for the language you're using.
itext
13,243
questions
0
votes
0
answers
25
views
Is there a way to add Image using "saveIncremental" without invalidating previous signature
I'm currently trying to enable multiple users to sign PDF using Apache PDFBox.
My goal is to add images to a PDF incrementally without invalidating previous signatures. So far, I have successfully ...
0
votes
0
answers
50
views
How to Generate PDFs with Mixed Hebrew and English Text in .NET 6+?
I need to generate PDFs that support both Hebrew and English text. I've tried using iTextSharp(it is not MIT or Apache license), but I'm encountering issues with rendering mixed language content (...
-1
votes
1
answer
38
views
Add text to the center of the circle [closed]
I have the code for such a circle, I need to add text to the center of this circle, but I can't figure out how to do it
private static @NotNull PdfCanvas getPdfCanvas(PdfDocument pdf) {
int ...
1
vote
0
answers
33
views
How to create a TextAnnotation on a rotated PDF page using iText7 in C#?
I am trying to create a TextAnnotation in a rotated PDF page using iText7 in C#. The annotation is created in the right place, but the text is not shown. Here is my code:
string src = "...
0
votes
0
answers
30
views
Issue with Tamil Fonts in HTML to PDF Conversion
While converting HTML to PDF, I encountered irregular fonts in the Tamil language. Attached are my code and the resulting PDF. The fonts appear distorted or improperly rendered. I need a solution to ...
1
vote
1
answer
50
views
Table content is shown faded on next page
I am trying to generate a PDF using itextpdf. When the table is extended to the next page, the color is shown faded. Suppose I have generated four pages of PDF, then on the first and fourth page it's ...
0
votes
0
answers
25
views
How can I get the X and Y positions of a word in a specif page and specific line of a pdf with itextsharp?
I have a pdf documentation where hundreds of CNC patameters are explained. I have a C# code
where I
find the related parameter definition word and the correct page number
call a method with this two ...
-1
votes
0
answers
68
views
How to Reflow Text in a PDF after Replacing a Word using iText in Java?
I'm working on a Java project where I need to replace a specific word(s) in a PDF file and ensure that the text reflows properly to maintain the layout. Specifically, For example, if I want to replace ...
0
votes
0
answers
16
views
why the style error and chinese is not display when i use itext7 pdfhtml java lib translate svg to pdf
Initially, I utilized an SVG as a background image in the CSS of my HTML file and attempted to convert it to PDF using HtmlConvert.convertToPdf. However, my SVG images are experiencing styling issues ...
0
votes
1
answer
25
views
How can we set fieldproperty of setfflags to read-only a formfield using java itext 8.0.4 version
form.setfieldproperty(field, "setfflags", PdfFormField.FF_READ_ONLY, null);
How can we set fieldproperty of setfflags to read-only a formfield using Java iText 8.0.4 version, when migrating ...
0
votes
1
answer
48
views
iText HTML to PDF change background color
I was trying to convert an HTML to PDF file using iText with Java. However my PDF file has an area with different color cause by tag <body> background property. The PDF file should have all-...
-1
votes
0
answers
26
views
How to fill an image field in a PDF form using iText7 without base64 encoding?
I have been having trouble with saving images in PDF Forms using iText
I found a solution that works, which is passing down the imagePath to PdfButtonFormField.SetImage, however, this just adds the ...
0
votes
1
answer
92
views
Itext Html to PDF Arabic text broken
When i am converting html to pdf in C# the arabic text is broken and also seems to be reversed.
I have tried direction rtl, adding arabic fonts.
.arabic {
direction: rtl;
unicode-bidi: ...
0
votes
0
answers
18
views
iTextSharp Header is merging with document content
I need is header table on all pages and page content/table which will be different every page. I am using PdfPageEventHelper for header. I have below code in OnOpenDocument
header.WriteSelectedRows(0,...
0
votes
0
answers
40
views
Itext 7.0 - Acroforms are empty
I have a PDF form with filled out fields. If I try to read the acrofields they are empty. But in the PDF I can change the values and save them.
namespace Tutorial {
public class FillForm {
...