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
1 answer

How to convert some html elements into span elements and extract coordinates from them?

I am trying to convert some elements (labels) that my html contains into span and be able to extract the position (coordinates) from them. Could you please help me as I am new to iText 7: My code is: ConverterProperties properties = new…
jonathan
  • 57
  • 6
0
votes
0 answers

Is iTextSharp/itext7 thread-safe?

We are currently using iTextSharp, version 5.5.13. Given that there is a notice that engineers are here on StackOverflow answering questions, riddle me this - is iTextSharp thread-safe? If iTextSharp 5.5 isn't safe, is iText7 thread-safe? I can work…
reZach
  • 8,945
  • 12
  • 51
  • 97
0
votes
1 answer

iText7 Merge of Multiple PDF MemoryStreams Not Working

I am trying to Generate a Single PDF File From Multiple Memory Streams, I am having a lot of trouble determining the proper way to merge 2 PDF MemoryStreams into one PDF MemoryStream that contains all the pages from both source PDF MemoryStreams. It…
0
votes
1 answer

In itext7, Various columns document or switched column document

I have to make a pdf document like this. In itext 7, I made columns document by ColumnDocumentRenderer class but i can't made like this. Whole document was separated to two…
Jang-Ho Bae
  • 498
  • 5
  • 19
0
votes
1 answer

How to strictly keep text block together in one line of Paragraph

For the first part in red, it's kept together in one line. But for the second part in red, it's splitted to multiple lines, which is not pure text but composed by Text & Link. Here is the code: PdfDocument pdfDoc = new PdfDocument(new…
Steven Li
  • 51
  • 6
0
votes
0 answers

Unable to retrieve font error while working with iText7 and pdfHtml add-on

I am getting below error while working with pdfHtml add-on. Actually the html content to pass into HTMLConverter.convertToPdf method is dynamic. This HTML content I get by reading outlook email from a folder using JavaMail API. I am using iText7.1.9…
user3742125
  • 617
  • 2
  • 9
  • 31
0
votes
0 answers

itextpdf-7: htmltopdf: No worker found for tag wbr

In some generated HTML, we insert a tag to help with line breaks in a table. However I get this error message: [error] c.i.h.a.i.DefaultHtmlProcessor - No worker found for tag wbr when converting this HTML to PDF with itext7-core-7.1.11 and…
Allan
  • 81
  • 10
0
votes
1 answer

Importing iText DITO SDK via maven

I'm using iText library for generating PDF files and I could successfully import the required libraries by the following maven dependencies to my java project: com.itextpdf kernel
Elyas Hadizadeh
  • 3,289
  • 8
  • 40
  • 54
0
votes
1 answer

itext7 + pdfHtml: how set portrait orientation and fit content on ConvertToPdf

I did a simple html to pdf conversion getting a landscape orientation. In the pdfHtml release notes I see that the default orientation should be portrait but I got a landscape. I'm not able to find the option/parameter/setting to do it. Probably it…
Tonyc
  • 709
  • 1
  • 10
  • 29
0
votes
1 answer

How to switch different iText document renderers in the same page

The case is that at the beginning of Page, Elements should be drawn in one column, and after that, elements in the same page should be drawn in two columns. So far, according to the iText example "c02e10_jekyllhydev6", I just can switch different…
Steven Li
  • 51
  • 6
0
votes
0 answers

iText7 RegexBasedLocationExtractionStrategy not finding all regex matches

So I have been using iText7 on C# for PDF data extraction and highlighting. I used to use iTextSharp 5 and it did well for what I needed, I ported over some functionality but decided to start using the RegexBasedLocationExtractionStrategy to find…
0
votes
1 answer

itext7 adding shapes and text

Is it possible to create shape and text combination in itext7 like in the link below: I have created a table with 3 cells and created a horizontal line. private Table AverageTable() { float[] widths = new float[] { 30f,1.125f,30f }; Table…
0
votes
1 answer

iText7.1.11 - need BouncyCastle JAR's?

I am implementing some iText7.1.11 java code into an IBM WebSphere environment, and upon WebSphere deployment, it errors out because it needs some Bouncycastle JAR's. According to the pom.xml, iText7.1.11 has a Bouncycastle dependency to version…
Garet
  • 1
  • 1
0
votes
1 answer

iText 7 - text overlay in a table, how to span over all possible columns

there is a picture visualizing my problem. I have a table with let's say 5 columns and 5 rows. The first row and first column has a long text. The text won't fit in to the cell but I want to show the entire text in a line, spanning all the…
Sabrina
  • 3
  • 1
0
votes
0 answers

Visible Sign a PDF with iText7 and a smartcard (or token) in C#

I'm trying to set a visible signature on a PDF file with iText7 and BouncyCastle in C#, using a certificate stored on a smartcard. All goes well since I have to create the IExternalSignature object to use in the SignDetached() function of the…
The Agony
  • 138
  • 1
  • 8