Questions tagged [itextpdf]

itextpdf is part of the package name of iText, a PDF library available on itextpdf.com

Questions about the Java version of iText and the C# version of iText (aka iTextSharp) are usually posted using the tag.

227 questions
0
votes
0 answers

iTextPDF.PdfReader returns only line breaks (\n), but content exists

I trying get content with PDF, but I get only linebreaks (\n) In debugger, variable str = "\n \n\n\n \n \n " and more this characters. try { PdfReader reader = new PdfReader("C:\Users\lll\Desktop\65297.pdf"); …
LLL RRR
  • 189
  • 13
0
votes
2 answers

How can I add page background color of pdf using iText in java

I am new to iText pdf library. Can any one guide me how to add background color to entire page (not for chunk or paragraph) using iText pdf in java.
Arun
  • 15
  • 1
  • 7
0
votes
1 answer

Add named destinations to an existing PDF document with iText

I have a PDF previously created with FOP, and I need to add some named destinations to it so later another program can open and navigate the document with the Adobe PDF open parameters, namely the #namedest=destination_name parameter. I don't need…
gioefex
  • 1
  • 3
0
votes
1 answer

Bookmarks in a pdf not going to the correct pages nor any page for that matter. Why is this happening?

I'm using Netbeans and the iText pdf api. So I have the following method that creates a hashtable that can be inserted into a pdf. In this case they are image files that are to be placed in the pdf at the end of the document. private HashMap
TomMonTom
  • 45
  • 7
0
votes
1 answer

Itext : set zoom level of external hyper link in pdf

I am using following code to set external hyperlink using itext library in Java. Chunk chunk = new Chunk("Click to Open File"); PdfAction action = new PdfAction("externalfile.pdf"); action.put(PdfName.NEWWINDOW,…
Butani Vijay
  • 4,181
  • 2
  • 29
  • 61
0
votes
0 answers

content byte has strange colour behaviour with 5.5.5 jar

I have code which has worked for some time to stamp 'DRAFT' over the pages of a PDF file I just updated the app to the 5.5.5 jar and for some PDFs instead of lovely pink watermark it is only black. The code works properly for both source files with…
john renfrew
  • 393
  • 1
  • 9
  • 30
0
votes
1 answer

how to retrieve date from PdfDictionary

in a signed PDF in the FILTER dictionary of the PROP_BUILD dictionary of the SignatureDictionary are 4 keys /Date /Name /V /R As there is no PdfName.DATE, how can I retrieve the date from this point which I know exists, as it can be seen with RUPS?
john renfrew
  • 393
  • 1
  • 9
  • 30
0
votes
1 answer

flying saucer pdf + itextpdf: how to append text to the last page in existing pdf file?

I have to export several thousands html pages from the knowledge base to the pdf file. I'm using flying saucer library (because it knows how to correctly render html+css), which used itextpdf under the hood for pdf manipulation. The problem is that…
Maks
  • 202
  • 1
  • 9
0
votes
1 answer

inside the
  • convert to PDF using itext not working
    I am using itextpdf(using SimpleXMLParser to parse)for converting HTML to PDF. The html contains
  • inside the
  • tag. After converted to pdf, the pdf contains only text, but not table contents. Update: I am using itextpdf-5.1.3.jar Anyone…
    Mano
    • 9
    • 3
    0
    votes
    1 answer

    is there a simple way to determine 'last' PDF signature and lock it?

    I am reading carefully the Digital Signature white paper and ITEXT IN ACTION: CHAPTER 12: PROTECTING YOUR PDF.. I have successfully added multiple signatures in append mode to a source PDF, and I have client who will add 2 or 3, or 4 signatures as…
    john renfrew
    • 393
    • 1
    • 9
    • 30
    0
    votes
    2 answers

    iTextsharp adding language to PDF document

    I am using iTextsharp dll version (5.5.5.0). i need to copy a pdf file . The destination file should have a language "en-GB". This should be there in document properties-> Advance-> Language I tried doing this through c# Code as follows …
    user406580
    • 17
    • 1
    • 7
  • text text text
    text text
    is legitimate html - but it throws an error with XmlWorker 5.5.5 and iText 5.5.5 com.itextpdf.tool.xml.exceptions.RuntimeWorkerException: Invalid nested tag br found, expected closing tag td. if you remove the…
    john renfrew
    • 393
    • 1
    • 9
    • 30
    0
    votes
    0 answers

    Does Latest version of iTextPdf(i.e. 5.5.5) support Hindi Language?

    I had seen on www.itextpdf.com that iText has recently released version 5.5.5. Does it fully support Hindi language? Because I am facing problem in Hindi ligature. Before buying iTextPdf this I want to know whether this support Hindi language or…
    Karsan
    • 269
    • 3
    • 14
    0
    votes
    0 answers

    remove white space using itextpdf

    I am converting html data into pdf,but I got white space where some large data will insert, I'd like to trim off the whitespace for following data note: header is coming from jasper report 'Document document = new Document(PageSize.A4, 40, 72,…
    venky pup
    • 1
    • 3
    0
    votes
    1 answer

    Positioning digital signatures on pdfs using custom coordinates (using bouncy castle framework)

    Following is the code I am using to place digital signatures on standard four coordinates ie top left, top right, bottom left, bottom right. However, its not working correctly for top left. PdfReader reader = new PdfReader(src);//src being file…
    Devanshu Kashyap
    • 185
    • 1
    • 22