RE: Reading page using PDFTextStripper

2020-11-25 Thread Hesham Gneady
Thanks Maruan! Are you sure you're reading the PDF using PDFTextStripper.processTextPosition()? Because I've tried it again now using PDFBox 2.0.21 and I'm getting different results even when setting setSortByPosition( true ): Comments are made from 1905, / See: Certain Neurotic

How to define page size for dynamic pages

2020-11-25 Thread Ambashankar Shirahatti
Hi, Using below code to generate pdf files. Here first page is generating with proper A4 size, from second page onwards top and bottom margin is more(Not A4 size). How to solve this. public class PdfBoxSample01{ public static void main(String[] args) throws IOException {

RE: Reading page using PDFTextStripper

2020-11-25 Thread Hesham Gneady
Thanks a lot James! Please ask your boss :) Best regards, Hesham -- Included Message: Hesham, I faced a similar problem recently with text that had a different font being offset from other text in

Using PDFBox to Remove Layers

2020-11-25 Thread Conor
Hello, I've been trying to use the PDFBox library to remove layers/optional content groups from some PDFs but I haven't been able to get it work. I've tried following the examples here: