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
1
vote
1 answer

How to create a list without indentation?

Is it possible to create numbered list without indent ? Somethig like that : 1 A 1-1 A_A 2 B 2-1 B_B 2-1-1 B_B_B
Valeriane
  • 936
  • 3
  • 16
  • 37
1
vote
1 answer

Draw on a Pdf into a Window Form C# (visual studio 2015)

I'm a beginner of C#, so sorry if it's a dumb question. I have to draw on a pdf that it's displayed into a WinForm of Visual Studio 2015. When I click a point of the pdf I want to start drawing (isn't important what I want draw). I've already the…
Paolo Zaia
  • 218
  • 3
  • 14
1
vote
1 answer

Generate pdf of a custom view using iTextPDF in Android

I have created a custom view (basically a chart). I instantiate the custom view in a layout file like this:
1
vote
1 answer

Rectangle remove side

Is it possible to remove a side for a rectangle ? I want draw a rectangle on my pdf page without left side rect.disableBorderSide(Rectangle.LEFT); does not works
Valeriane
  • 936
  • 3
  • 16
  • 37
1
vote
1 answer

Alternativ for HtmlUtilities.decodeColor

I passed my pdf-generator project from lowagie-4.2.0_17 to itextpdf-5.5.6 In my project I have Color.decode(colorString) I replace it by HtmlUtilities.decodeColor(colorString) but it is Deprecated What alternativ exists for…
Valeriane
  • 936
  • 3
  • 16
  • 37
1
vote
1 answer

iTextPDF : Set page size of PDF according to the size of the image to be inserted

I am generating PDF report using iTextPDF for Selenium WebDriver scripts developed in TestNG. The report would contain text block (String) and images. Images always contain a text block before it. The issue I am facing is that while creating the…
StrikerVillain
  • 3,719
  • 2
  • 24
  • 41
1
vote
1 answer

How to set up a table display in iTextpdf

I have an application that I want to print an invoice like document in a table setup. Each line in the table will be from a separate document from a database. The iteration through the Db is not an issue but I want it to display something like…
Bill F
  • 2,057
  • 3
  • 18
  • 39
1
vote
0 answers

How to create new page based on the condition using itextpdf and java

I am generating pdf using itextpdf library and created table with different fields. In which Accode is one field it represents the account code of each employee.I am getting the Accode by using type,type1 fields from database and assigning the value…
user3459021
  • 21
  • 1
  • 5
1
vote
2 answers

rendering images XmlWorkerHelper(itextpdf)

please help me. I have problem with rendering image in pdf im usung itextpdf 5.5.6 and itext 5.5.6 my code is: . . . URL url = new URL("http://some.html"); URLConnection uc = url.openConnection(); InputStreamReader…
Luke Bucik
  • 11
  • 1
1
vote
1 answer

Sign concatenated PDF in append mode with CERTIFIED_NO_CHANGES_ALLOWED

I tried to sign PDF with append mode and certification level CERTIFIED_NO_CHANGES_ALLOWED but certain PDF files shown as modified and therefore invalid in Acrobat. itext 5.5.6, code: PdfStamper stp = PdfStamper.createSignature(reader,…
Vova l
  • 213
  • 6
  • 15
1
vote
1 answer

iTextPDF hyperlink not linking to the right place

I have a bunch of PDF's which I have merged by this point in the code. At the beginning of the merged PDF I have a contents page which links to said PDF's respectively. These pdfAction.gotoLocalPage links sometimes don't work correctly and instead…
Smittey
  • 2,475
  • 10
  • 28
  • 35
1
vote
0 answers

PDF contains text, but ITextPDF dont see it

I have a problem with getting text from a PDF. I use library com.itextpdf in version 5.0.6 Link to PDF: http://sendfile.pl/pobierz/351149---hDwE.html try { PdfReader reader = new PdfReader("C:\\Users\\lukas\\Desktop\\test.pdf"); …
lukas rr
  • 11
  • 1
1
vote
1 answer

Change the color of pdf pages alternatively using iText pdf in java

I'm creating report based on client activity. I'm creating this report with the help of the iText PDF library. I want to create the first two pages with a blue background color (for product name and disclaimer notes) and the remaining pages in white…
Arun
  • 15
  • 1
  • 7
1
vote
0 answers

PdfReader constructor on Inputstream or Byte[] with interface ExternalDecryptionProcess

I need to call the constructor of PdfReader with the interface ExternalDecryptionProcess from an inputStream or byte array. Is it possible to add a new constructor to the PdfReader class like the following: PdfReader(final InputStream is,…
Jamil Nour
  • 41
  • 4
1
vote
1 answer

Divide page in 2 parts so we can fill each with different source

I need to create an User guide, where I've to put the content in 2 different language but on the same page. so the first half of the page would be in English while the second part would be in French. (In future they might ask for 3rd language also,…
IT ppl
  • 2,626
  • 1
  • 39
  • 56