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: Re: About Stream
Date Fri, 15 Feb 2019 12:09:28 GMT
Annex A, page 643.

Tilman


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



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





Not found "operator summary" in this PDF. Where it is?

пт, 15 февр. 2019 г. в 17:03, Tilman Hausherr <THausherr@t-online.de
<mailto:THausherr@t-online.de> >:

> 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
<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 <mailto: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> <
http://documentpdf.getPage(0> <http://documentpdf.getPage(0>> ; );
> Iterator<PDStream> contentStreams = page.getContentStreams
<http://page.getContentStreams>
> <http://page.getContentStreams> <http://page.getContentStreams>> ; ();
> while(contentStreams.hasNext())
> {
> PDStream next = contentStreams.next <http://contentStreams.next> <
http://contentStreams.next> <http://contentStreams.next>> ; ();
> COSStream cosObject = next.getCOSObject <http://next.getCOSObject> <
http://next.getCOSObject> <http://next.getCOSObject>> ; ();
> cosObject.toTextString <http://cosObject.toTextString> <
http://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