Re: How do I create a valid PDF/A document with PDFBOX 2.0?

2015-12-28 Thread Tilman Hausherr
Am 29.12.2015 um 02:02 schrieb Nakul Malhotra: How do you use pdfbox to extract?!!? https://pdfbox.apache.org/1.8/cookbook/textextraction.html |PDFTextStripper stripper = new PDFTextStripper(); stripper.setStartPage( 2 ); stripper.setEndPage( 3 ); stripper.getText( document ); |

Re: Why is addPolygon, drawPolygon and fillPolygon depricated?

2015-12-28 Thread John Hewson
> On 28 Dec 2015, at 17:01, db...@bergqvist.se wrote: > > The methods addPolygon, drawPolygon and fillPolygon in PDPageContentStream is > depricated and I don't see why. PDPageContentStream provides drawing methods which represent those available in the PDF format - polygon drawing isn't a nati

Re: How do I create a valid PDF/A document with PDFBOX 2.0?

2015-12-28 Thread db123
This code loads the pdf "test.pdf" and saves every page as a PNG file. If you want to show the page on screen you could use the method pdfRenderer.renderPageToGraphics() instead. public void extractPages() throws IOException { String pdfFilename = "test"; PDDocument document = PDDoc

Re: How do I create a valid PDF/A document with PDFBOX 2.0?

2015-12-28 Thread Nakul Malhotra
How do you use pdfbox to extract?!!? On Mon, Dec 28, 2015 at 8:02 PM, wrote: > Thanks! > > > > 2015-12-28 08:44 skrev Tilman Hausherr: > >> Am 28.12.2015 um 04:40 schrieb db...@bergqvist.se: >> >>> Hi, >>> >>> I have read this document about creating a valid PDF/A document: >>> >>> https://pdfbo

Re: How do I create a valid PDF/A document with PDFBOX 2.0?

2015-12-28 Thread db123
Thanks! 2015-12-28 08:44 skrev Tilman Hausherr: Am 28.12.2015 um 04:40 schrieb db...@bergqvist.se: Hi, I have read this document about creating a valid PDF/A document: https://pdfbox.apache.org/1.8/cookbook/pdfacreation.html The problem is that it is written for PDFBOX 1.8 and I cannot get

Why is addPolygon, drawPolygon and fillPolygon depricated?

2015-12-28 Thread db123
The methods addPolygon, drawPolygon and fillPolygon in PDPageContentStream is depricated and I don't see why. Why is it better to write: for (int i = 0; i < x.length; i++) { if (i == 0) { contentStream.moveTo(x[i], y[i]); } else { contentStream.lineTo(x[i]

Re: Adding outline or bookmarks to merge-job

2015-12-28 Thread Tilman Hausherr
Am 29.12.2015 um 00:18 schrieb Tory S. Anderson: I'm working on a Clojure web app with the following function flow: User uploaded docx -> mongodb -> docx4j converts each to PDF -> PDFBox Merger Utility merges all to a single PDF. So far so good; everything is working. However, I need to be ab

Re: How do I create a valid PDF/A document with PDFBOX 2.0?

2015-12-28 Thread Tilman Hausherr
Am 28.12.2015 um 23:56 schrieb Nakul Malhotra: what is the best way to go about learning how to use pdfBox? The best is to look at the examples, find the one the most similar to what you want to do. There's no "PDFBox in action" book or tutorial. If you want to do advanced things, you'll ne

Adding outline or bookmarks to merge-job

2015-12-28 Thread Tory S. Anderson
I'm working on a Clojure web app with the following function flow: User uploaded docx -> mongodb -> docx4j converts each to PDF -> PDFBox Merger Utility merges all to a single PDF. So far so good; everything is working. However, I need to be able to add bookmarks (outline nodes) to the produc

Re: How do I create a valid PDF/A document with PDFBOX 2.0?

2015-12-28 Thread Nakul Malhotra
what is the best way to go about learning how to use pdfBox?