Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
76 views

MemoryStream disposed on doc.close()

I've adapted this code from the ItextSharp version to Itext 8.0.5 public MemoryStream GenerateReportPdf(ReportData reportData) { using (MemoryStream ms = new MemoryStream()) { var ...
Scott Rassbach's user avatar
1 vote
0 answers
46 views

How to check PDF size while writing it with iText7

I’m using iText7 to generate a pdf. I want to check its size while writing it because if it is over 20MB I want to save it and add the remaining parts to a new pdf file. So the problem is that iText7 ...
Donatello Mecca's user avatar
0 votes
1 answer
39 views

May I use iText7 .NET to embed only few letters

I am using rdlc reports and rendering them in pdf without embedded fonts because it reduces size dramatically. It works great except for certain users on the phone where blocks of text including some ...
Milan's user avatar
  • 1,019
1 vote
1 answer
30 views

Add AltText to image Itext 7 version9

How to add AltText to an image using Itext 7 version 9. I found this code snippet on the NET but the SetAltText method does not exist in the version I'm using. Document document = new Document(pdfDoc)...
Andre Rubnikowich's user avatar
1 vote
1 answer
47 views

iText 7 Footer new Canvas(..).close() gives "Resource leak: '<unassigned Closeable value>' is never closed"

I'm following this iText 7 Footer Example, almost unmodified, to add a footer to the PDF: https://kb.itextpdf.com/itext/page-events-for-headers-and-footers There is an Event Handler defined which uses ...
gene b.'s user avatar
  • 12k
1 vote
0 answers
32 views

iText keeps throwing "Object null reference exception" for ShowTextAligned [duplicate]

While doing PDF operations - can anyone help here? I'm getting the following error while doing header: System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance ...
Durgesh Awasthi's user avatar
0 votes
0 answers
28 views

iText7 extracting text from pdf ignoring carriage return line feed,

public List<string> ExtractTextFromPdfA(string pdfPath) { var extractedText = new List<string>(); try { using (PdfReader pdfReader = ...
user29888433's user avatar
-3 votes
0 answers
40 views

Internal links not working after processing the pdf that is generated using weasyprint

I have generated a PDF file with table of content and other internal links in this format <div class="page headerconf" id="toc" style="page-break-before:avoid;page-break-...
Prabhakaran's user avatar
  • 4,013
0 votes
1 answer
12 views

iText 7 Placing Text at Specific Coordinates

Coming from itextsharp, where you can use ColumnText to place text at specific coordinates like so: ColumnText ct = new ColumnText(cb); ct.SetSimpleColumn(DrawingSpace.llx, DrawingSpace....
Charles Corio's user avatar
0 votes
0 answers
29 views

Why does applying Rowspan ruins the design in iTextSharp?

I have been trying to fix this issue for days and I'm out of ideas. I'm new to iTextSharp and iText7, could anyone help me with this? I am doing a Docx to PDF by extracting the contents using OpenXML ...
Fikri's user avatar
  • 1