[
https://issues.apache.org/jira/browse/PDFBOX-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16140384#comment-16140384
]
Tilman Hausherr commented on PDFBOX-3905:
-----------------------------------------
I closed your issue because this is a how-to question, JIRA is for bugs and
improvements. Use the user mailing list for "how to" questions. And read
https://pdfbox.apache.org/support.html in full. Specific questions about
LayoutTextStripper should be asked on stackoverflow in the linked stackoverflow
question, if you can comment (IIRC you must have 50 reputation). If you can't
comment, then create a new question there.
Re user mailing list, any attachments must be uploaded to a sharehoster.
> allignment is missing while reading pdf
> ---------------------------------------
>
> Key: PDFBOX-3905
> URL: https://issues.apache.org/jira/browse/PDFBOX-3905
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> 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]