Relative Content

Tag Archive for itext7

iText 8 – PdfDocumentEvent.END_PAGE not getting fired

It looks like PdfDocumentEvent.END_PAGE is not getting fired all the times as expected. The code below will generate C:temppageEvent.pdf, and if you look at page 5 or page 9, they have new page, and header is the first line on the new page, and I want zero top-padding there.

Extract paragraphs from a PDF

I need to extract paragraphs from a PDF using a free library for C# and VS. If a paragraph continues on the next page, should it be returned as one paragraph and not two? Do you have an example in C#? I’m trying to find out if iText does this but I can’t find the answer.