pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject AW: About Stream
Date Fri, 15 Feb 2019 11:54:57 GMT
yes, click on "operator summary" in the PDF 32000 specification.

There are probably easier ways to do whatever you want.... see the examples 
subproject in the source code download.

Tilman


------------------------------------------------------------------------
Gesendet mit der Telekom Mail App
<https://kommunikationsdienste.t-online.de/redirects/email_app_android_sendmail_footer>



--- Original-Nachricht ---
Von: Евгений Король
Betreff: About Stream
Datum: 15.02.2019, 6:54 Uhr
An: users@pdfbox.apache.org





Hello. I trying this code:
PDDocument documentpdf = PDDocument.load(new File("file.pdf"));
PDPage page = documentpdf.getPage(0 <http://documentpdf.getPage(0> );
Iterator<PDStream> contentStreams = page.getContentStreams
<http://page.getContentStreams> ();
while(contentStreams.hasNext())
{
PDStream next = contentStreams.next <http://contentStreams.next> ();
COSStream cosObject = next.getCOSObject <http://next.getCOSObject> ();
cosObject.toTextString <http://cosObject.toTextString> ()
}
So i get stream from PDF (Returns the contents of the stream as a PDF "text
string".) .
What meanin this content? I try to parse it for some image settings. Where
i can read about format of tis content? Maybe in PDF specs?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message