13 questions from the last 30 days
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 ...
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 ...
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?
...
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 ...
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 ...
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 ...
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, ...
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 ...
-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";
...
-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-...
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....
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 ...
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 ...