You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Andrew Phillips <an...@gmail.com> on 2013/12/19 16:45:40 UTC

Get original byte array / byte stream from PDF

Hope someone can point me in the right direction, i am wondering if there is a way to get the original byte stream from the pdf i got using PDDocument.load(URL)?   I want to save a snapshot of the original PDF without downloading it twice, or downloading it to a temporary location then loading into PDDocument and loading again to a byte stream?

Thanks!
Andy P