I need to hide the number of sections and sections in the files that I generate using iTextSharp (in the contents of the file, I do not care about bookmarks), for example, I will need to change the actual result generated in this way
in the following way:
This is a Chapter Title 1
This is in Title 1
I tried the following code, overriding the OnSection method:
public override void OnSection(PdfWriter writer, Document document, float paragraphPosition, int depth, Paragraph title)
{title.RemoveAt(0);
base.OnSection(writer, document, paragraphPosition, depth, title);
}
But I did not get any results, can anyone help? Thanks a lot, Ariel
source
share