Relative Content

Tag Archive for c#itextitext7

Itext html to pdf with header and footer

I am working on a project where I need to convert html into a pdf file. I have it working using iText.Html2pdf; for the html body I need to see how I can add a header and footer? I see this sample https://kb.itextpdf.com/itext/pdfhtml-header-and-footer-examples but when I try to add the code I am getting some runtime errors.

How to prioritize split characters within ISplitCharacters in iText 7

Working with iText 7 splitcharacters, I want a string that has to be split to always split on hyphens or spaces if they exist regardless of the location of that character and if they don’t exist split on any character. However, all of the splitcharacter implementations (Default, BreakAll, KeepAll) always seem to split on the last valid split character regardless of the characters that are present.