Questions tagged [itext7]

Library to create and manipulate PDF documents in Java and C#. Use this tag for code using iText version 7 and higher. Use the "itext" tag for older versions up to 5.5.x. Remember to also add a tag for the language you're using.

For more on iText, see here.

For more on the differences between iText 5 and iText 7, see here.

2125 questions
0
votes
2 answers

How to Colorize Selected Rows in an iText Table?

I want to draw a visual distinction between rows based on their content in my iText table. I found a tutorial here:, but it's in Java instead of C#, and I don't know what version of iText it is for. I am using iText 7 and it is apparently radically…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

iText7 for .NET does not include images in the conversion from HTML to PDF

I have this HTML:

Development, Systems &…

jstuardo
  • 3,901
  • 14
  • 61
  • 136
0
votes
1 answer

How to get a long table drawed starting from the top of page using iText7 in C#?

PDF Page Example The PDF is composed by serveral paragraphs added to the document, and there is a long table which need to set started from top of one page(not the first page) which means a paragraph will be splitted to two parts. If the table is…
Steven Li
  • 51
  • 6
0
votes
1 answer

How to change direction of Hebrew letters?

I'm using itext 7.1.8 and I need to save Hebrew text in my document. I found this solution here but it doesn't work for me. My code looks like the following: public class RunItextApp { public static void main(String[] args) throws Exception { …
John
  • 1,375
  • 4
  • 17
  • 40
0
votes
1 answer

iText 7 Chinese characters and merge with existing pdf template

I have to rephrase my question, basically my request is very straight forward, i want to display Asian characters in the generated pdf file from iText7. As of now i have download the NotoSansCJKsc-Regular.otf file and assign a variable to hold the…
Andie
  • 23
  • 8
0
votes
1 answer

Combining forms while retaining form fonts in itext7

I am trying to fill and combine multiple forms without flattening(need to keep them interactive for users). However I notice a problem. I have PDF files that contain the forms I am trying to fill. The form fields have their fonts set in adobe PDF. I…
esock
  • 46
  • 4
0
votes
1 answer

How to addLtv after the last signer signed?

I'm learning how to addLtv from this link my workflow is for 2 signers: signer 1: prepare empty signature (with NO_CERTIFIED certification level) generate hash and get p7s inject p7s to pdf for signer 1 addLtv for signer 1 ---> I am not sure on…
Don2
  • 313
  • 3
  • 12
0
votes
1 answer

How to set signer name?

How to set signer name in iText7?, I try to use .SetContact but it does not appear as signer name. PdfSignatureAppearance _sap = signer.GetSignatureAppearance(); _sap .SetPageRect(new iText.Kernel.Geom.Rectangle(_x, _y,…
Don2
  • 313
  • 3
  • 12
0
votes
0 answers

How to add CPS link info to Legal Notice tab?

How to add CPS link info to Legal Notice tab in certificate viewer of a Pdf? I want when "Show Issuer Policy" button clicked it will redirected to CPS url. I need help thank you.
Don2
  • 313
  • 3
  • 12
0
votes
1 answer

How to export DataGridView as PDF using iText7, (Note: Not Using iTextSharp) in C#?

I found lots of examples of how to export DataGridView and DataTable to PDF using iText Sharp, which is an older version of iText7, but I would like to how we can do it using iText7 including Headers, Thanks in advance
0
votes
1 answer

How to add Ltv & CRL (offline) while injecting .p7s to a Pdf?

I inject p7s to a Pdf using code below: PdfWriter pdfWriter = new PdfWriter("results/final1.pdf"); PdfDocument document = new PdfDocument(new PdfReader("results/prepared1.pdf"), pdfWriter, new StampingProperties().UseAppendMode()); …
Don2
  • 313
  • 3
  • 12
0
votes
0 answers

Seemingly inflated PDF size when using IText 7

I'm using IText 7 in dotnet core to manipulate a PDF file. Once the process has completed I'm finding myself with a 5-page PDF at 14.2MB. When I open the generated PDF in Adobe Reader I am prompted to save when closing Reader. If i choose Yes it…
Darren Wainwright
  • 30,247
  • 21
  • 76
  • 127
0
votes
0 answers

Itext7 modify table width

In java itext5 there is function table.setWidths() hence we can modify column widths on fly. In itext7 table.setWidths() is not there and new Table(colwidths) have to pass in constructor this is fixed and cannot modyify on fly.Please let me know…
ramarao
  • 1
  • 1
0
votes
2 answers

Multiple line footer in itext 7 c#

I want to add a dynamic footer in itext7 using C#. The footer can vary from 1 to 6 lines of text. I have been able to implement single line footers but the long text is being truncated. Please help. Code to add footer: class CustomEventHandler :…
0
votes
1 answer

Accepting Pdf through post request and passing to itext7 pdfreader in c# .net core

I am getting a pdf through post request from frontend as an IFormFile form and I want to take that and pass it to pdfreader() in itext7 package. so far i could only pass with the path as string i dont have any path to specify.
Asvinth A
  • 3
  • 2
1 2 3
99
100