Re: PDF Printing: multiple copies

2015-05-08 Thread Gregor Kovač
Hi! John, maybe it was, but I still get only one page printed out. I'm using this code: private static void printWithPDFBox2(File pdfFile, int copies) { PDDocument document = null; try { document = PDDocument.load(pdfFile); PrinterJob printJob = PrinterJob

Re: PDF Printing: multiple copies

2015-05-08 Thread John Hewson
This has been fixed in 2.0: https://issues.apache.org/jira/browse/PDFBOX-2094 — John > On 7 May 2015, at 16:04, Gregor Kovač wrote: > > Hi! > > I'm using PDFBox 1.8.9 and using this method to print a PDF file: > > private static void print

Re: extracting text from an "encrypted" pdf

2015-05-08 Thread Tilman Hausherr
Am 08.05.2015 um 17:51 schrieb Clemens Wyss DEV: Thx for the very fast answer. new StandardDecryptionMaterial( password ); I have no password. The pdf is a public user manual. Use an empty password :-) Tilman That is TIKA, isn't it? True -Ursprüngliche Nachricht- Von: Tilman H

AW: extracting text from an "encrypted" pdf

2015-05-08 Thread Clemens Wyss DEV
Thx for the very fast answer. > new StandardDecryptionMaterial( password ); I have no password. The pdf is a public user manual. > That is TIKA, isn't it? True -Ursprüngliche Nachricht- Von: Tilman Hausherr [mailto:thaush...@t-online.de] Gesendet: Freitag, 8. Mai 2015 17:44 An: users@p

Re: extracting text from an "encrypted" pdf

2015-05-08 Thread Tilman Hausherr
Am 08.05.2015 um 17:36 schrieb Clemens Wyss DEV: When I try to extract an "encrypted" (which can be read in AcrobatReader) document with: pdfDocument = PDDocument.load( is ); add if( document.isEncrypted() ) { StandardDecryptionMaterial sdm = new StandardDecryptionMaterial( password ); doc

extracting text from an "encrypted" pdf

2015-05-08 Thread Clemens Wyss DEV
When I try to extract an "encrypted" (which can be read in AcrobatReader) document with: pdfDocument = PDDocument.load( is ); PDFTextStripper pdfStripper = new PDFTextStripper(); parsedText = pdfStripper.getText( pdfDocument ); I get an empty string, and " o.apache.pdfbox.pdfparser.PDFParser -