Questions tagged [pdfbox-layout]

7 questions
0
votes
0 answers

Adding a pdf attachment to the PDF using pdfBox

I'm currently working on an api which generate a pdf file with some customer report and contain some pdf atatchments related to the report. I am adding an attachment to the PDF using PDFBox library in Java by referring to the code snippet, Adding…
Rosa Mystica
  • 243
  • 1
  • 3
  • 17
0
votes
0 answers

Change the font color and font type of an attachment content using PDFBox

I'm currently working on adding an attachment to a PDF using the PDFBox library in Java. While referring to the code snippet, Adding a File Attachment I successfully attached the document created using ByteArrayInputStream to the attachment.…
Rosa Mystica
  • 243
  • 1
  • 3
  • 17
0
votes
0 answers

How to use Apache PDFBox to check PDF contains watermark and watermark content allows at least 6.35mm of non-printable area on each edge of a page?

How to use apache pdfbox to check PDF contains watermark and watermark content allows at least 6.35mm of non-printable area on each edge of a page? I need to support various printer margin capabilities; it is STRONGLY RECOMMENDED that the watermark…
0
votes
0 answers

PDFBox Customized PDFTextStripper

I'm a rookie, really. I'm building my first project (if I can finish it). I want to extract PDF text with formatting and location, and then write to .docx file. I checked the PDFBox API documentation, but I'm not sure if I want to get the location…
HappyKoala
  • 191
  • 1
  • 11
0
votes
0 answers

Apache PDFBox - Creating PDF in Landscape Mode

I am currently trying to generate PDF file in landscape mode using Apache PDFBox version 2.0.17. In Portrait mode, PDF got generated properly. In landscape mode, the data in PDF is also rotating to 90 degree. Is it possible to create PDF in…
Sathish
  • 1
  • 1
0
votes
1 answer

Manually add new page in PDFBox using pdfbox-layout

I'm using pdfbox-layout to create and manage PDF documents using Document API. Document document = new Document(); It manages to create new page automatically if the text size increases beyond current page using Paragraph API. Paragraph paragraph =…
ScrapCode
  • 2,109
  • 5
  • 24
  • 44
0
votes
0 answers

Working with PDFBox and PDFLayout to generate PDF document

I find that there are few things that are easier do and manage via simple PDFBox APIs, whereas some are convenient using pdfbox-layout. PDFBox uses PDDocument as the class to create and manage documents, whereas pdfbox-layout uses Document class for…
ScrapCode
  • 2,109
  • 5
  • 24
  • 44