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

ClassCastException when casting IBasicOCSPResponse to IBasicOCSPResp in iText 8.0.4

I am working with iText 8.0.4 (GitHub Repository) and trying to cast IBasicOCSPResponse (from com.itextpdf.signatures) to IBasicOCSPResp (from com.itextpdf.commons.bouncycastle.cert.ocsp). This is ...
blinkbink's user avatar
  • 119
0 votes
2 answers
67 views

iText insert image in pdf at specific element or at the end of text

I'm asking because I can't find proper documentation for iText, only API reference. Is there a way to add an image in a PDF with iText after retrieving some element or text position using only iText? ...
leryler's user avatar
1 vote
1 answer
45 views

Reduce Pdf File size using java

I am trying to create a pdf file using PDDocument but output pdf size is more than 15 mb. i want to reduce so that max pdf size is max 10 mb Creating pdf file : (templateList is list of all ...
Preeti Joshi's user avatar
0 votes
1 answer
82 views

Data replacement in a PDF Template (Java | SpringBoot)

I am working on a project in spring-boot that signs visually pdfs. The idea is that I am researching different ways to manipulate the pdfs using java and cannot find the most optimal one. For example ...
c8a's user avatar
  • 1
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
40 views

Itext:Why are my bullet points appearing as dashes instead of the default bullets in pdf?

I’m facing a problem where, whenever there is an unordered list in the HTML content that I’m parsing as elements and filling into the PDF cell, everything else displays fine except the bullet points, ...
Manish Kumar's user avatar
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
-2 votes
0 answers
34 views

How to edit PDF in C# in Windows Forms [duplicate]

This is my code: public class PDFGenerator { public static void FillCharacterSheet() { string inputPdfPath = @"D:\mypath\DnD_5E_CharacterSheet_FormFillable.pdf"; ...
KitKobry'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
20 views

Result report conversion HTMLtoPDF in SerenityBDD framework using itextpdf

Hi have a Serenity BDD framework and I am trying to convert my index.html report to itextpdf but its not generating the report I have checked the paths and the java class but it not generating , I ...
Display's user avatar
  • 21
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