Ken,

I do not retrived the pdf using PdfBox but using an explicit http
connection.
Then I get the content and pass it to PdfBox.

Code:

URL urlObj = new URL(pdfUrl);
HttpURLConnection connection = (HttpURLConnection)
urlObj.openConnection();
int httpRespCode = connection.getResponseCode();

if (httpRespCode == 200) {
        RandomAccessBuffer tempMemBuffer = new RandomAccessBuffer();
        PDDocument doc = PDDocument.load(connection.getInputStream(),
tempMemBuffer);
...


   fabrizio


On May 4, 11:17 pm, kldaniels <[email protected]> wrote:
> This is interesting that you got this to work.
>
> I have been trying to work with PDFBox with GAE as well, and have not
> been able to get very far.  I am attempting to open a pdf document as
> follows but only get a IOException:
>
>      URL url = new URL("http://www.pbs.org/newshour/extra/teachers/
> lessonplans/media/clock_gettysburg_9-3.pdf");
>      PDDocument doc = PDDocument.load(url);
>      PDDocumentInformation info = doc.getDocumentInformation();
>
> I am not sure what I am doing wrong.
>
> Ken

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to