<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community : All Content - All Communities</title>
    <link>https://forums.adobe.com/</link>
    <description>All Content in Adobe Community</description>
    <language>en</language>
    <pubDate>Fri, 29 Aug 2014 04:14:21 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-08-29T04:14:21Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Decompressing a cross reference stream with Params.</title>
      <link>https://forums.adobe.com/thread/1560282</link>
      <description>&lt;!-- [DocumentBodyStart:ddc66778-c8fd-40f8-b5f4-b44d6bb00271] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I'm losing my mind trying to decompress this stream.&amp;nbsp; I've asked everyone and am not having much luck with it. This is a cross reference stream with decode params.&amp;nbsp; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have used an external library for decompressing this and for some reason, the xref streams just cannot be decoded.&amp;nbsp; I noticed that software designed to decompress pdf files such as Quick Pdf, VeryPdf etc will decompress all streams but these.&amp;nbsp; So there must be something extra about the output of these that I don't understand. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;A common error message would be that the stream cannot be displayed because it contains binary data.&amp;nbsp; Very odd. Any clues.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;25 0 obj&lt;/p&gt;&lt;p&gt;&amp;lt;&amp;lt;/DecodeParms&amp;lt;&amp;lt;/Columns 4/Predictor 12&amp;gt;&amp;gt;/Filter/FlateDecode/ID[&amp;lt;6647557224A6C102A60F6D82BB22C18D&amp;gt;&amp;lt;AA383B5CF85B7F4BACB9D502B93 343E9&amp;gt;]/Index[10 20]/Info 9 0 R/Length 64/Prev 23381/Root 11 0 R/Size 30/Type/XRef/W[1 2 1]&amp;gt;&amp;gt;stream&lt;/p&gt;&lt;p&gt;h&amp;#222;bbd ``b`&amp;#352;&amp;nbsp;&amp;nbsp; ~@&amp;#8218;&amp;#241; &amp;#144;`&amp;Ugrave; $&amp;#216;&amp;#249;&amp;euro; W &amp;#144;P&amp;deg;~.............compressed stream data.&lt;/p&gt;&lt;p&gt;endstream&lt;/p&gt;&lt;p&gt;endobj&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ddc66778-c8fd-40f8-b5f4-b44d6bb00271] --&gt;&lt;img src='/beacon?t=1415903112782' /&gt;</description>
      <pubDate>Fri, 29 Aug 2014 04:14:21 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1560282</guid>
      <dc:date>2014-08-29T04:14:21Z</dc:date>
      <clearspace:dateToText>2 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Decompressing Xref Streams?</title>
      <link>https://forums.adobe.com/thread/1558040</link>
      <description>&lt;!-- [DocumentBodyStart:7a5d447f-3bea-4bd1-82ce-a30f3a42e7fa] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am having significant problems decompressing xref streams.&amp;nbsp; Unfortunately the use of Params has complicated things a little.&lt;/p&gt;&lt;p&gt;I am using various open source libraries to do this but I just wanted to check if my understanding is right.&amp;nbsp; The ISO3200 standard doesn't quiet put it in a way I can understand.&amp;nbsp; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I am returning a decompressed Xref stream to a buffer, can I output it as one long string (adhering to white space), or do I need to recognise the output another way.&amp;nbsp; Such as Objects etc? &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Are Xref streams and white space rules surrounding these streams the same as the rules for all other streams.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have files written with Adobe 9 pdf printer, are the predictors in that version, relative to previous versions, different.&amp;nbsp; I'm simply trying to decompress text streams and want the xref information to navigate the document. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If there is tips for decompressing these streams please add them as I could be here for the next two years trying to decompress a single &lt;/p&gt;&lt;p&gt;xref stream. Maybe that's the way it's supposed to be, I don't know. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7a5d447f-3bea-4bd1-82ce-a30f3a42e7fa] --&gt;</description>
      <pubDate>Tue, 26 Aug 2014 14:50:21 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1558040</guid>
      <dc:date>2014-08-26T14:50:21Z</dc:date>
      <clearspace:dateToText>2 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>ISO 3200 - 7.5.8 Cross-Reference Streams</title>
      <link>https://forums.adobe.com/thread/1517788</link>
      <description>&lt;!-- [DocumentBodyStart:72aae39a-bc9e-4924-a918-9a869fe89802] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm having trouble interpreting the Example 4 on page 48 of &lt;strong style="text-decoration: underline;"&gt;&lt;span style="color: #993300; text-decoration: underline;"&gt;PDF 32000-1:2008&lt;/span&gt;,&lt;/strong&gt; Specifically in relation to the blue &lt;strong style="color: #0000ff;"&gt;bolded&lt;/strong&gt; text below. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The first field of these entries is the entry &lt;span style="color: #0000ff;"&gt;&lt;strong&gt;type (2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------What does the 2 represent?&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em style="color: #0000ff;"&gt;&lt;strong&gt;&lt;em&gt;number of the object &lt;strong style="color: #0000ff;"&gt;stream (15)&amp;nbsp;&amp;nbsp; --------What does the 15 represent?&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em style="color: #0000ff;"&gt;&lt;strong&gt;&lt;em&gt;&lt;strong style="color: #0000ff;"&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em style="color: #0000ff;"&gt;&lt;strong&gt;&lt;em&gt;&lt;strong style="color: #0000ff;"&gt;&lt;em&gt;position within the sequence of objects in the &lt;strong style="color: #0000ff;"&gt;object stream (0, 1, and 2)------What does this refer to?&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em style="color: #0000ff;"&gt;&lt;strong&gt;&lt;em&gt;&lt;strong style="color: #0000ff;"&gt;&lt;em&gt;&lt;strong style="color: #0000ff;"&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000;"&gt;&lt;strong&gt;It's just not clear what the 15 is if it's the second entry?&amp;nbsp;&amp;nbsp; Would somebody be able to explain where these numbers come from?&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&lt;strong&gt;&lt;strong style="color: #0000ff;"&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;em style="color: #0000ff;"&gt;&lt;strong&gt;&lt;em&gt;&lt;strong style="color: #0000ff;"&gt;&lt;em&gt;&lt;strong style="color: #0000ff;"&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The following shows the same objects from the previous example stored in an object stream in a PDF 1.5 file, along with a cross-reference stream.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The cross-reference stream (see 7.5.8, "Cross-Reference Streams") contains entries for the fonts (objects 11 and 13) and the descriptor (object 12), which are compressed objects in an object stream. The first field of these entries is the entry &lt;span style="color: #0000ff;"&gt;&lt;strong&gt;type (2)&lt;/strong&gt;&lt;/span&gt;, the second field is the number of the object &lt;strong style="color: #0000ff;"&gt;stream (15)&lt;/strong&gt;, and the third field is the position within the sequence of objects in the &lt;strong style="color: #0000ff;"&gt;object stream (0, 1, and 2)&lt;/strong&gt;. The cross-reference stream also contains a type 1 entry for the object stream itself.&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:72aae39a-bc9e-4924-a918-9a869fe89802] --&gt;</description>
      <pubDate>Wed, 09 Jul 2014 08:32:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1517788</guid>
      <dc:date>2014-07-09T08:32:18Z</dc:date>
      <clearspace:dateToText>4 months 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>PDF File with Run Length Encoding?</title>
      <link>https://forums.adobe.com/thread/1405910</link>
      <description>&lt;!-- [DocumentBodyStart:875191ef-9102-4349-a562-eafb4a58c134] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Would anyone have a PDF file containing text streams compressed in Run-Length Encoding?&amp;nbsp; I need one to test a decompressor.&amp;nbsp; I know they are probably rare and not used anymore which is why one is so difficult to find. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you do have one could you attach it in a reply or refer me to it.&amp;nbsp; &lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:875191ef-9102-4349-a562-eafb4a58c134] --&gt;</description>
      <pubDate>Thu, 13 Feb 2014 17:29:13 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1405910</guid>
      <dc:date>2014-02-13T17:29:13Z</dc:date>
      <clearspace:dateToText>7 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Cropping PDF Files and printing?</title>
      <link>https://forums.adobe.com/thread/1435592</link>
      <description>&lt;!-- [DocumentBodyStart:8f89d7e3-351a-414e-8fd9-2b2f3e1fd020] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I'm having some problems with a PDF file.&amp;nbsp; It is a document with a large margin (allot of space) befoer and after the writing on each page.&amp;nbsp; I can crop the document so it removes this white space and it appears to work.&amp;nbsp;&amp;nbsp;&amp;nbsp; The problem I'm having is this: &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I go to print the document (two pages per sheet), it doesn't seem to take into account that I have trimmed the white space from either side of each page.&amp;nbsp; Obviously I want the writing to be as big as possible given that I have removed allot of the white space.&amp;nbsp; But,,, despite removing this white space by cropping all the pages in the document (left, right, top, bottom margins) these broad white space margins still show up when I go to print the document.&amp;nbsp; How can I get rid of this white space permenantly.&amp;nbsp; Is it embedded somewhere else in the document?&amp;nbsp; Maybe there's a setting I need to change in the document properties.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8f89d7e3-351a-414e-8fd9-2b2f3e1fd020] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">margin</category>
      <pubDate>Tue, 25 Mar 2014 04:18:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1435592</guid>
      <dc:date>2014-03-25T04:18:18Z</dc:date>
      <clearspace:dateToText>7 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>PDF Stream Extent?</title>
      <link>https://forums.adobe.com/thread/1381985</link>
      <description>&lt;!-- [DocumentBodyStart:c002527e-c0df-4904-935c-dbb16eb5915f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello everyone.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm trying to interpret exacty what is and isn't included in a PDF stream and to date am still confused. I'll paste a section of the ISO3200 - 1 PDF reference below. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm not sure, but these statements appear to contradict each other.&amp;nbsp; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So I have a stream which specifies a lenghth of 2215 bytes in its compressed form. &lt;/p&gt;&lt;p&gt;There is a carriage return and a line feed at the start and end of the stream data falling between the '&lt;strong&gt;stream&lt;/strong&gt;' and '&lt;strong&gt;endstream&lt;/strong&gt;' keywords. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So my data looks like this :&amp;nbsp; &lt;strong&gt;&lt;span style="color: #800080;"&gt;stream&amp;nbsp; &lt;/span&gt;CR LF&lt;/strong&gt; Data Data Data &lt;strong&gt;CR LF &lt;span style="color: #800080;"&gt;endstream&amp;nbsp; &lt;span style="font-size: 8pt;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; color: #ff0000;"&gt;Keep in mind that CR = Carriage Return and &lt;/span&gt;&lt;/strong&gt;&lt;span style="color: #ff0000; font-size: 8pt;"&gt;&lt;strong&gt;LF = Line feed&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Before I remove the CR and LF from each end of the data the total size of the stream is 2217 bytes (between the 'stream' and 'endstream' keywords.&amp;nbsp; From the first paragraph below it appears that I am reading the data between the Carriage return and line feed characters at each end which brings the compressed size down to 2213 bytes (not 2215 as the stream 'Lenght' specifies. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I follow the second paragraph from Table 5 in relation to Stream Lenghth, it appears that only the carriage return and line feed at the end of the stream are removed.&amp;nbsp; So the stream to be decompressed would look like this:&amp;nbsp; &lt;strong&gt;CR LF&lt;/strong&gt; Data Data Data .&amp;nbsp; This in fact adheres to the Stream Lenght specification for that stream which is 2215 bytes? &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When decompressing a stream, what should and shouldn't be included?&amp;nbsp; Cut the CR and LF from the start or the end ,,, or both?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note the &lt;span style="color: #ff0000;"&gt;&lt;strong&gt;red &lt;/strong&gt;&lt;/span&gt;bolded section below: "lie between the end-of-line marker (I assume this means not inclusive).&amp;nbsp; Like saying, stand between those two people (this doesn't mean stand on these two people and centre yourself).&amp;nbsp;&amp;nbsp; Yet... the &lt;span style="color: #339966;"&gt;&lt;strong&gt;green &lt;/strong&gt;&lt;/span&gt;bolded area in the second section doesn't mention the initial white space?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Perhaps this is what it means.&amp;nbsp; The first whitespace character after the 'stream' keyword and the whitespace character preceding the 'endstream' keyword are ignored so the stream looks like this:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Original Stream Data before removing whitespace:&amp;nbsp;&amp;nbsp;&amp;nbsp; CR LF&lt;/strong&gt; Data Data Data &lt;strong&gt;CR LF&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Actual Stream data to be decompressed (whitespace removed):&amp;nbsp;&amp;nbsp; &lt;/strong&gt;&lt;strong&gt;LF&lt;/strong&gt; Data Data Data &lt;strong&gt;CR&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;That last option produces a stream of 2215 bytes as well.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 8pt;"&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Under 'Stream Objects - General'&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&lt;em&gt;The keyword stream that follows the stream dictionary shall be followed by an end-of-line marker&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&lt;em&gt;consisting of either a CARRIAGE RETURN and a LINE FEED or just a LINE FEED, and not by a CARRIAGE RETURN alone. &lt;strong&gt;The sequence of bytes that make up a stream &lt;span style="color: #ff0000;"&gt;lie between the end-of-line marker following the stream keyword&lt;/span&gt; and the endstream keyword&lt;/strong&gt;; the stream dictionary specifies the exact number of bytes. There should be an end-of-line marker after the data and before endstream; this marker shall not be included in the stream length.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000;"&gt;&lt;strong&gt;AND&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;From table 5 in relation to the stream Length.&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&lt;em&gt;(Required) &lt;span style="color: #008000;"&gt;&lt;strong&gt;The number of bytes from the beginning of the line&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #008000;"&gt;&lt;strong&gt;&lt;em&gt;following the keyword stream to the last byte just before the&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #008000;"&gt;&lt;strong&gt;&lt;em&gt;keyword endstream. (There may be an additional EOL&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #008000;"&gt;&lt;strong&gt;&lt;em&gt;marker, preceding endstream, that is not included in the count&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&lt;em&gt;and is not logically part of the stream data.) See 7.3.8.2,&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&lt;em&gt;"Stream Extent", for further discussion.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000;"&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c002527e-c0df-4904-935c-dbb16eb5915f] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">streams</category>
      <pubDate>Fri, 17 Jan 2014 03:52:02 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1381985</guid>
      <dc:date>2014-01-17T03:52:02Z</dc:date>
      <clearspace:dateToText>9 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Reading a PDF stream for LZW decompression?</title>
      <link>https://forums.adobe.com/thread/1353484</link>
      <description>&lt;!-- [DocumentBodyStart:ac5096d5-f446-4a30-a363-145c2d60f4d9] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p style="background-color: #e7e7e7; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;Hello..&amp;nbsp; I'm really struggling here.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="background-color: #e7e7e7; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;I am currently using the &lt;strong&gt;Rosetta Code implementation for LZW decompression (C++).&lt;/strong&gt;&amp;nbsp; This implementation requires numerical imput.&amp;nbsp; That is.. the input in it's compressed state is in numerical form.. a series of numbers.&amp;nbsp; &lt;strong&gt;My problem is this:&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="background-color: #e7e7e7; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;I want to read the compressed LZW stream (compressed only in LZW and &lt;strong&gt;not&lt;/strong&gt;encoded in ASCII 85) into a buffer and that is then passed to the decompression algorithm for decompression.&amp;nbsp; I open the pdf in binary mode, read each character and convert it to an int and load each integer into the buffer .&amp;nbsp; Once the buffer (which is an int vector) is loaded, I pass this to the algorithm for decompression. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="background-color: #e7e7e7; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;Unfortunately the data will not decompress.&amp;nbsp; I seem to get the same output as I put into it in a character form.&amp;nbsp;&amp;nbsp; I have included white space (noskipws) and also tried the opposite.&amp;nbsp; I have also tried (using bitwise shift operation) to create 12 bit chunks and then loading those into an int vector.&amp;nbsp; This isn't working either.&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm thinking it has something to do with how I am reading the data in the first place.&amp;nbsp; What do all these little glyphs represent (in the compressed stream)&lt;strong&gt;?&lt;/strong&gt;&amp;nbsp; How do I go about reading compressed data into a buffer if the algorithm I am using requires numberical input common to LZW compression&lt;strong&gt;?&lt;/strong&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="background-color: #e7e7e7; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;Should I include white space&lt;strong&gt;?&amp;nbsp; &lt;/strong&gt;How should I read the compressed data&lt;strong&gt;?&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="background-color: #e7e7e7; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;Any clues would be greatly appreciated.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="background-color: #e7e7e7; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;Thanks very much. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ac5096d5-f446-4a30-a363-145c2d60f4d9] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">lzw</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">streams</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">decompression</category>
      <pubDate>Sun, 08 Dec 2013 11:45:31 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1353484</guid>
      <dc:date>2013-12-08T11:45:31Z</dc:date>
      <clearspace:dateToText>11 months 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Reading a PDF stream for LZW decompression?</title>
      <link>https://forums.adobe.com/thread/1353482</link>
      <description>&lt;!-- [DocumentBodyStart:9f02bd5f-ed15-4314-a371-aadc3f0aaf58] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello..&amp;nbsp; I'm really struggling here.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am currently using the &lt;strong&gt;Rosetta Code implementation for LZW decompression (C++).&lt;/strong&gt;&amp;nbsp; This implementation requires numerical imput.&amp;nbsp; That is.. the input in it's compressed state is in numerical form.. a series of numbers.&amp;nbsp;&amp;nbsp; &lt;strong&gt;My problem is this:&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to read the compressed LZW stream (compressed only in LZW and &lt;strong&gt;not &lt;/strong&gt;encoded in ASCII 85) into a buffer and that is then passed to the decompression algorithm for decompression.&amp;nbsp; I open the pdf in binary mode, read each character and convert it to an int and load each integer into the buffer .&amp;nbsp; Once the buffer (which is an int vector) is loaded, I pass this to the algorithm for decompression.&amp;nbsp; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Unfortunately the data will not decompress.&amp;nbsp; I seem to get the same output as I put into it in a character form.&amp;nbsp;&amp;nbsp; I have included white space (noskipws) and also tried the opposite.&amp;nbsp; I have also tried (using bitwise shift operation) to create 12 bit chunks and then loading those into an int vector.&amp;nbsp; This isn't working either.&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm thinking it has something to do with how I am reading the data in the first place.&amp;nbsp; What do all these little glyphs represent (in the compressed stream)&lt;strong&gt;?&lt;/strong&gt;&amp;nbsp; How do I go about reading compressed data into a buffer if the algorithm I am using requires numberical input common to LZW compression&lt;strong&gt;?&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Should I include white space&lt;strong&gt;?&amp;nbsp; &lt;/strong&gt;How should I read the compressed data&lt;strong&gt;?&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any clues would be greatly appreciated. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks very much.&amp;nbsp; &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9f02bd5f-ed15-4314-a371-aadc3f0aaf58] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">compression</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">lzw</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">streams</category>
      <pubDate>Sun, 08 Dec 2013 10:42:14 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1353482</guid>
      <dc:date>2013-12-08T10:42:14Z</dc:date>
      <clearspace:dateToText>11 months 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

