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
0 answers

Decode Identity-h embedded font text while reading pdf I text7

I am working on Itext7 Pdf generation , In the beginning I am setting font with Identity-h embedded . After some point need to read the document content for searching particular text , But not able decode the Decode Identity-h embedded font
Sagar N H
  • 3
  • 1
0
votes
1 answer

Extracting answers to a flattened PDF form with iText 7

We have a few forms created from Adobe LiveCycle where users fill the dynamic forms and submits the document to our office where we stamp it with our signature and flatten it (at least most of the time - I've seen a few documents in our system that…
dokgu
  • 4,957
  • 3
  • 39
  • 77
0
votes
0 answers

When should I addLtv before or after injecting the .p7s to Pdf?

When should I addLtv? after or before injecting .p7s? We have 2 signers, 1st signer certification level is 0 (NO_CERTIFIED) and the 2nd signer certification level is 1 (NO_CHANGES_ALLOWED). We use the code below to addLtv PdfDocument pdfDoc = new…
Don2
  • 313
  • 3
  • 12
0
votes
0 answers

How to allow 2nd signer to put watermark after 1st signer signed?

How to put a watermark after 1st signer signed a PDF? I have a multiple signers case: Signer 1 already signed and I set the CertificationLevel to 3 Signer 2 put watermark into that PDF, I do the following process flow: Prepare PDF that already…
Don2
  • 313
  • 3
  • 12
0
votes
1 answer

How to perform revocation check with iText7?

Why my Pdf certificate status "Revocation checks status were not perform"? How to perform revocation check with iText7? Do I need to do this before injecting .p7s into the Pdf?
Don2
  • 313
  • 3
  • 12
0
votes
1 answer

How to change watermark value dynamically itext pdf java

public class WatermarkPageEvent extends PdfPageEventHelper { private static Font catFont = new Font(Font.FontFamily.TIMES_ROMAN, 50, Font.NORMAL, BaseColor.LIGHT_GRAY); String date = new SimpleDateFormat("dd-MMM-yyyy").format(new Date()); …
Garima
  • 95
  • 1
  • 9
0
votes
1 answer

Itext 7 - Need solution for (pdfdocument.GetPage(4).GetContentBytes())

I am trying pdfDocument.GetPage(4).GetContentBytes() but getting an error object reference not set to instance of an object. itext kernel at kernel extension.get[tkey, tvalue] But If I try pdfDocument.GetPage(5).GetContentBytes() it is working.
Sagar N H
  • 3
  • 1
0
votes
0 answers

What would be the performance difference with largeTable setting to be true versus false

I'm trying to optimize my application's performance for generating PDF document in .NET Core with C#. In local testing, I noticed that when I use the Table constructor with a second parameter of largeTable = true, it shortens the timing by 5% to…
Baolin Li
  • 103
  • 1
  • 7
0
votes
1 answer

How to print two parallel tables side by side in iText7, rendering them on one page at at a time and then adding new page

I want to add two parallel tables (tables contain content more than one page) side by side in iText7. Rendering should be done as: Render two tables on page 1, then add new page. Then render remaining part of tables on second page. If they still…
0
votes
1 answer

Replace a page in a PDF with iText7

I am in the process of updating some PDF editing tools from iTextSharp to iText7. In iTextSharp there was a method in the pdfStamper class: pdfStamper.ReplacePage(). However, the pdfStamper class has been removed in iText7 and I am having trouble…
Matt Bartlett
  • 348
  • 1
  • 3
  • 21
0
votes
2 answers

Reading reading pdf paragraph text along with css (color etc) using itext

I have pdf with tables and cells and i have added paragraph with formatted text in the cell, i need to read list of all tables and followed by text in paragraph with some css(some text highlighted in color), let me know how to start with this, any…
Dayananda
  • 17
  • 9
0
votes
1 answer

itext7 Overwriting long string value

I have the following code: void Main() { var writer = new PdfWriter(@"c:\temp\Overwrite.pdf"); var pdf = new PdfDocument(writer); var document = new Document(pdf); var p = new Paragraph($"Feature:…
auburg
  • 1,373
  • 2
  • 12
  • 22
0
votes
1 answer

How to render two tables simultaneously (tables are having content more than single page) using iText7

I need to add 2 tables on 2 parallel columns starting from page 1, and both tables have content more than a single page. Table1 runs on left half of page and table2 runs on right half. I started rendering table 1 and it overflows. Now before…
0
votes
0 answers

What would be the best way of returning generated PDF file with total page number for Web API

For a web application with .NET Core, we'll need to generate PDF file with certain data. In some situations, the total pages could be over 1000. Is there any other way than generating in-memory PDF file and putting the total page after finishing it…
Baolin Li
  • 103
  • 1
  • 7
0
votes
1 answer

Is it possible to remove selected bookmarks (aka outlines)?

Can existing bookmarks be removed from the outline tree of a document using iText 7? The PdfOutline class has methods to add outlines, but there are none to remove one. I tried selectively copying outlines to a list, removing all the existing…
user3969107
  • 27
  • 1
  • 5
1 2 3
99
100