<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : GetContentStreamToVariant - strange</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : GetContentStreamToVariant - strange]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Jul 2026 23:28:33 +0000</pubDate>
  <lastBuildDate>Mon, 19 May 2014 22:11:44 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=2903</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : Thanks for the clarification.I...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11735.html#11735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 19 May 14 at 10:11PM<br /><br /><span style="line-height: 1.4;">Thanks for the clarification.&nbsp;</span><div>I still have one concept.&nbsp;</div><div>I have to first do the tests.&nbsp;</div><div>Then if this will have any useful information. then I will share them.</div>]]>
   </description>
   <pubDate>Mon, 19 May 2014 22:11:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11735.html#11735</guid>
  </item> 
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : mLipok,It is because the text...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11734.html#11734</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 19 May 14 at 1:16PM<br /><br />mLipok,<div><br></div><div>It is because the text extraction routines recursively parses the XObjects and takes care of all the scaling and translation that may occur. &nbsp;Proper text extraction is a complex process. &nbsp;Our text extraction is actually using the page rendering code to extract the text. &nbsp;There is no simple way to extract text for all PDF files. &nbsp;There are many different ways to draw text in a PDF.&nbsp;</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Mon, 19 May 2014 13:16:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11734.html#11734</guid>
  </item> 
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : It is puzzling why ExtractFilePageText()function...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11733.html#11733</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 18 May 14 at 1:49PM<br /><br />It is puzzling why <i>ExtractFilePageText()</i>&nbsp;function gets the full content on this page?]]>
   </description>
   <pubDate>Sun, 18 May 2014 13:49:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11733.html#11733</guid>
  </item> 
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : mLipok,That is a perfectly valid...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11728.html#11728</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 18 May 14 at 9:25AM<br /><br /><div>mLipok,</div><div><br></div><div>That is a perfectly valid conten stream.</div><div><br></div><div><span style="line-height: 1.4;">The PDF content is contained in an XObject. &nbsp;CapturePage and DrawCapturedPage make use of XObjects. &nbsp;XObects are like macros and can be nested, rotated and scaled before being drawn.</span></div><div>This is all documented in the PDF Specifications.</div><div><br></div><div><div>Also you can call QP.CombineContentStreams to multiple content streams into a single contentstream. &nbsp;This will not help you in this case though.</div><div><br></div><div><br></div><div>Andrew.</div></div>]]>
   </description>
   <pubDate>Sun, 18 May 2014 09:25:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11728.html#11728</guid>
  </item> 
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : it is:Concatenation assignment...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11725.html#11725</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 17 May 14 at 9:52PM<br /><br /><div>it is:</div><div><span style="font-size: medium; line-height: normal;">Concatenation assignment</span></div><div><span style="font-size: medium; line-height: normal;"><br></span></div><div>http://www.autoitscript.com/autoit3/docs/intro/lang_operators.htm</div><div><br></div>"<div><table><t><tr><td ="S8 center">&amp;=<br></td><td>Concatenation assignment. e.g. <str&#111;ng ="S9">$vVar</strong> <str&#111;ng ="S8">=</strong> <strong>"one"</strong>, and then <str&#111;ng ="S9">$vVar</strong> <str&#111;ng ="S8">&amp;=</strong> <str&#111;ng ="S3">10</strong>&nbsp;&nbsp;&nbsp; (<em>$vVar now equals "one10"</em>)</td></tr></t></table><div>"</div></div><div><br></div><div>So how yous see it: a<span style="line-height: 1.4;">dds a new string without deleting the previous content</span></div><div><span style="line-height: 1.4;"><br></span></div><div>But now I still think the problem is here:&nbsp;</div><div><span style=": rgb251, 251, 253; line-height: 1.4;">"</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">When I use $oQP.ContentStreamCount() then I get in results = 1</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">"</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">So there is only one Stream on this Page.</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">And this file had only one Page.</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div>]]>
   </description>
   <pubDate>Sat, 17 May 2014 21:52:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11725.html#11725</guid>
  </item> 
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : What about reading the description...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11723.html#11723</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 17 May 14 at 7:56PM<br /><br />What about reading the description about SelectContentStream first?<div>There you can read "...<span style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height: 1.4;">This function selects one of the selected page's content stream parts....".</span></div><div><span style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height: 1.4;">The selected pages... you've selected no page i think.</span></div><div><span style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height: 1.4;">And i don#t know the dev-language you're using but i fear in Output will always be only the very last content.</span></div><div><span style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height: 1.4;"><br></span></div><div><span style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height: 1.4;">Cheers, Ingo</span></div>]]>
   </description>
   <pubDate>Sat, 17 May 2014 19:56:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11723.html#11723</guid>
  </item> 
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : If I understand you that you mean...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11721.html#11721</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 17 May 14 at 11:53AM<br /><br /><div>If I understand you that you mean something like this:</div><div><br></div><font color="#0033ff"><div>$oQP.LoadFromFile($sFileName, '')</div><span style="line-height: 1.4;">Local $sOutput</span></font><div><font color="#0033ff">For $i = 1 to $oQP.ContentStreamCount()</font></div><div><font color="#0033ff"><span ="Apple-tab-span" style="white-space:pre">	</span>$oQP.SelectContentStream($i)</font></div><div><font color="#0033ff"><span ="Apple-tab-span" style="white-space:pre">	</span>$sOutput &amp;= BinaryToString($oQP.GetContentStreamToVariant()) &amp; @CRLF</font></div><div><font color="#0033ff">Next</font></div><div><font color="#0033ff">ClipPut($sOutput)</font></div><div><br></div><div><br></div><div><b>result:</b></div><div><div><font color="#0033ff">q</font></div><div><font color="#0033ff">10 0 0 10 0 -1.5276 cm</font></div><div><font color="#0033ff">0.1 0 0 0.1 0 0 cm</font></div><div><font color="#0033ff">/QuickPDFXOf582c8d3 Do</font></div><div><font color="#0033ff">Q</font></div><div><br></div></div><div><br></div><div><div>Do I understand it?&nbsp;</div><div>Or still I doing something wrong?&nbsp;</div><div>This single PDF file I can send to email (contains only one page of my private data)</div></div><div><br></div>]]>
   </description>
   <pubDate>Sat, 17 May 2014 11:53:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11721.html#11721</guid>
  </item> 
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : Hi,you have to select the relevant...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11718.html#11718</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 17 May 14 at 11:30AM<br /><br />Hi,<div><br></div><div>you have to select the relevant content stream you wanna have first:</div><div><a href="http://www.debenu.com/docs/pdf_library_reference/GetC&#111;ntentStreamToVariant.php" target="_blank" rel="nofollow">http://www.debenu.com/docs/pdf_library_reference/GetContentStreamToVariant.php</a></div><div><br></div><div>Cheers, Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Sat, 17 May 2014 11:30:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11718.html#11718</guid>
  </item> 
  <item>
   <title><![CDATA[GetContentStreamToVariant - strange : I have a document from the bank...]]></title>
   <link>http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11717.html#11717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 2903<br /><strong>Posted:</strong> 17 May 14 at 10:29AM<br /><br /><div>I have a document from the bank - the confirmation of the order.</div><div>When I retrieves text using <i>ExtractFilePageText</i>, I receive 1701 bytes of text.</div><div>But when I use:</div><div>BinaryToString ($oQP.<i>GetContentStreamToVariant</i>())</div><div>I receive only a short piece:</div><div><br></div><div><div><span style="color: rgb0, 51, 204; line-height: 1.4;">0x710A3130203020302031302030202D312E3532373620636D0A302E312030203020302E312030203020636D0A2F517569636B504446584F663538326338643320446F0A510A</span></div></div><div><br></div><div>Below string represtnation of this binary data:</div><div><br></div><div><div><div><font color="#0033cc">q</font></div><div><font color="#0033cc">10 0 0 10 0 -1.5276 cm</font></div><div><font color="#0033cc">0.1 0 0 0.1 0 0 cm</font></div><div><font color="#0033cc">/QuickPDFXOf582c8d3 Do</font></div><div><font color="#0033cc">Q</font></div></div></div><div><br></div><div><br></div><div><b>Remarks:</b></div><div>When I use ContentStreamCount then I get in results = 1</div><div><br></div><div><div><b>QUESTIONS:</b></div><div>What am I doing wrong?&nbsp;</div><div>Why function:&nbsp;<span style="line-height: 1.4;"><i>GetContentStreamToVariant</i></span><span style="line-height: 1.4;">&nbsp;is not getting all the PDF content?</span></div></div>]]>
   </description>
   <pubDate>Sat, 17 May 2014 10:29:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcontentstreamtovariant-strange_topic2903_post11717.html#11717</guid>
  </item> 
 </channel>
</rss>