tirumala created PDFBOX-3905:
--------------------------------

             Summary: allignment is missing while reading pdf
                 Key: PDFBOX-3905
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3905
             Project: PDFBox
          Issue Type: Bug
          Components: Writing
    Affects Versions: 2.0.7
            Reporter: tirumala
            Priority: Blocker
         Attachments: AcrobatDocument.pdf

Hi Team,
I am reading pdf using pdfbox-2.0.5.jar and writing in to xls format and .txt.

problam:
i am lossing allignment  and text format in xls and txt.
Can you please help on this.I am attaching pdf as well please help on this

logic is given below

 File file = new File("C:/Users//Desktop//AcrobatDocument.pdf");
                FileInputStream fis = null;
                
                fis = new FileInputStream(file);
          
          
          String output =null;
          
          BufferedInputStream fileToParse = new BufferedInputStream(fis);
          PDDocument document = null;
         
              document = PDDocument.load(fileToParse);
               output = new PDFTextStripper().getText(document);
               syste,.out.println(output )
}

        
and output is printing like below:-
-----

061
012
016 022
018 020
024 048
Payer’s name – Nom du payeur
Statement of Pension, Retirement, Annuity, and Other Income




 




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to