pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkuehler <andr...@lehmi.de>
Subject Re: RES: Problem with PDPixelMap getRGBImage - Something went wrong ... the pixelmap doesn't contain any data
Date Fri, 27 Sep 2013 17:08:26 GMT
Hi,

Am 27.09.2013 18:57, schrieb Paulo Mello:
> Thanks Andreas, but  get the PDDocument during a parser()
>
> 		File f = new File(pdfPath);
> 		FileInputStream is = null;
> 		is = new FileInputStream(f);
>
> 		PDDocument pdfDocument = null;
> 		PDFParser parser = new PDFParser(is);
> 		parser.parse();
> 		pdfDocument = parser.getPDDocument();
>
>
> I dont use more the load method.
That's suboptimal ...

> I dont understand why this exception occurs.
> PS: I had not received the answer of my old question. sorry about that
OK, no problem

> Can you help me with my way in this situation?
Without the pdf i question I can only guess.

Try the non-sequential parser instead of your code:

PDDocument pdfDocument = PDDocument.loadNonSeq(is, null);

> Thank you a lot.
>
> My oldest question i did not received
> Paulo Mello
> paulo.mello@portaldedocumentos.com.br
> Tel: (11) 5591-2100 – Ramal 110
> Rua dos Íris, 150 - Mirandópolis - São Paulo - SP
> CEP: 04049-040
> www.portaldedocumentos.com.br
>
>SNIP


BR
Andreas Lehmkühler


Mime
View raw message