<?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 : DAGetImageListCount does not work</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 : General Discussion : DAGetImageListCount does not work]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 07:09:39 +0000</pubDate>
  <lastBuildDate>Fri, 13 Jan 2017 10:46:54 +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=3432</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[DAGetImageListCount does not work : Hi Stefan,yes... RenderPage is...]]></title>
   <link>http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13645.html#13645</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3432<br /><strong>Posted:</strong> 13 Jan 17 at 10:46AM<br /><br />Hi Stefan,<br><br>yes... RenderPage is the only way out of your issue ;-)<br><br>]]>
   </description>
   <pubDate>Fri, 13 Jan 2017 10:46:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13645.html#13645</guid>
  </item> 
  <item>
   <title><![CDATA[DAGetImageListCount does not work : Hi Ingo,thank you for welcome...]]></title>
   <link>http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13643.html#13643</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2925">skoschke</a><br /><strong>Subject:</strong> 3432<br /><strong>Posted:</strong> 12 Jan 17 at 3:02PM<br /><br />Hi Ingo,<div><br></div><div>thank you for welcome , i understand now and will go another way in this case:</div><div><br></div><div>I try to use&nbsp;RenderPageToStream so i get the full page as background for my new pdf file...</div><div><br></div><div>Stefan</div>]]>
   </description>
   <pubDate>Thu, 12 Jan 2017 15:02:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13643.html#13643</guid>
  </item> 
  <item>
   <title><![CDATA[DAGetImageListCount does not work : Hi Stefan,only embedded (inserted...]]></title>
   <link>http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13642.html#13642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3432<br /><strong>Posted:</strong> 11 Jan 17 at 8:39PM<br /><br />Hi Stefan,<div><br></div><div>only embedded (inserted as files) images can be extracted from pdf.</div><div>It's similar to a word document:</div><div>You can insert a screenshot from the clipboard or you can insert an image file - that's different.</div><div>Images which are not really enbedded/inserted you can't extract using QuickPDF-functionality.</div><div><br></div><div>Your second issue will have to do with a strange font or something similar - so QuickPDF have some trouble in recognition.</div><div>Please keep in mind that QuickPDF is still a light weight pdf library instead of - for example - an adobe installation which comes around with 100 mb ;-)</div><div>It will help to upload the pdf-file anywhere - so we could make tests with own routines...</div><div><br></div><div>Cheers and welcome here,</div><div>Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 11 Jan 2017 20:39:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13642.html#13642</guid>
  </item> 
  <item>
   <title><![CDATA[DAGetImageListCount does not work : Code with DirectAccess: procedure...]]></title>
   <link>http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13640.html#13640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2925">skoschke</a><br /><strong>Subject:</strong> 3432<br /><strong>Posted:</strong> 11 Jan 17 at 1:32PM<br /><br />Code with DirectAccess:<div><br></div><div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div>&nbsp; procedure TForm1.ReadImages(fn: string; var l: Tstringlist);</div><div>var</div><div>&nbsp; i: integer;</div><div>&nbsp; imagecount: integer;</div><div>&nbsp; imageid: integer;</div><div>&nbsp; x: single;</div><div>&nbsp; y: single;</div><div>&nbsp; b: single;</div><div>&nbsp; h: single;</div><div>&nbsp; IL: integer;</div><div>&nbsp; PR: integer;</div><div>&nbsp; p: integer;</div><div>&nbsp; ImageData: ansistring; // !!!!!! wegen Stream !!!</div><div>&nbsp; seitenhoehe: single;</div><div>&nbsp; FH: integer;</div><div>begin</div><div>&nbsp; // Für DirectAccess mit FileHandle öffnen</div><div>&nbsp; FH := PDFLibrary.DAOpenFile(fn, '');</div><div>&nbsp; // alte Streams löschen</div><div>&nbsp; for i := 1 to High(streamarray) do</div><div>&nbsp; &nbsp; streamarray<em>.Free;</em></div><div><em>&nbsp; setlength(streamarray, 1);</em></div><div><em>&nbsp; for p := 1 to PDFLibrary.PageCount do</em></div><div><em>&nbsp; begin</em></div><div><em>&nbsp; &nbsp; PR := PDFLibrary.DAFindPage(FH, p);</em></div><div><em>&nbsp; &nbsp; IL := PDFLibrary.DAGetPageImageList(FH, PR);</em></div><div><em>&nbsp; &nbsp; seitenhoehe := PDFLibrary.DAGetPageHeight(FH, PR);</em></div><div><em>&nbsp; &nbsp; for i := 1 to PDFLibrary.DAGetImageListCount(FH, IL) do</em></div><div><em>&nbsp; &nbsp; begin</em></div><div><em>&nbsp; &nbsp; &nbsp; // Read the image data</em></div><div><em>&nbsp; &nbsp; &nbsp; ImageData := PDFLibrary.DAGetImageDataToString(FH, IL, i);</em></div><div><em>&nbsp; &nbsp; &nbsp; // Determine the location and size of the image on the page</em></div><div><em>&nbsp; &nbsp; &nbsp; x := PDFLibrary.DAGetImageDblProperty(FH, IL, i, 501);</em></div><div><em>&nbsp; &nbsp; &nbsp; y := seitenhoehe - PDFLibrary.DAGetImageDblProperty(FH, IL, i, 502);</em></div><div><em>&nbsp; &nbsp; &nbsp; b := PDFLibrary.DAGetImageDblProperty(FH, IL, i, 503) -</em></div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; PDFLibrary.DAGetImageDblProperty(FH, IL, i, 501);</em></div><div><em>&nbsp; &nbsp; &nbsp; h := PDFLibrary.DAGetImageDblProperty(FH, IL, i, 502) -</em></div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; PDFLibrary.DAGetImageDblProperty(FH, IL, i, 508);</em></div><div><em>&nbsp; &nbsp; &nbsp; // für jedes gefundene Bild Streamarray verlängern und speichern</em></div><div><em>&nbsp; &nbsp; &nbsp; setlength(streamarray, length(streamarray) + 1);</em></div><div><em>&nbsp; &nbsp; &nbsp; streamarray&#091;high(streamarray)&#093; := TMemorystream.Create;</em></div><div><em>&nbsp; &nbsp; &nbsp; streamarray&#091;high(streamarray)&#093;.Position := 0;</em></div><div><em>&nbsp; &nbsp; &nbsp; streamarray&#091;high(streamarray)&#093;.WriteBuffer(Pointer(ImageData)^,</em></div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; length(ImageData));</em></div><div><em>&nbsp; &nbsp; &nbsp; // in Liste eintragen</em></div><div><em>&nbsp; &nbsp; &nbsp; l.Add('P:' + p.ToString);</em></div><div><em>&nbsp; &nbsp; &nbsp; l.Add('{' + 'Image' + high(streamarray).ToString + '}');</em></div><div><em>&nbsp; &nbsp; &nbsp; l.Add('X:' + x.ToString);</em></div><div><em>&nbsp; &nbsp; &nbsp; l.Add('Y:' + y.ToString);</em></div><div><em>&nbsp; &nbsp; &nbsp; l.Add('B:' + b.ToString);</em></div><div><em>&nbsp; &nbsp; &nbsp; l.Add('H:' + h.ToString);</em></div><div><em>&nbsp; &nbsp; end; // End image loop</em></div><div><em>&nbsp; end;</em></div><div><em>&nbsp; PDFLibrary.DACloseFile(FH);</em></div><div><em>end;</em></div></blockquote><div><em><br></em></div><em>and with normal Access:</em></div><div><em><br></em></div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div><div><em>procedure TForm1.ReadImages2();</em></div></div><div><div><em>var</em></div></div><div><div><em>&nbsp; i, k: integer;</em></div></div><div><div><em>&nbsp; IL: integer;</em></div></div><div><div><em>&nbsp; ic: integer;</em></div></div><div><div><em>&nbsp; it: integer;</em></div></div><div><div><em>&nbsp; gid: integer;</em></div></div><div><div><em>&nbsp; filename : string;</em></div></div><div><div><em>begin</em></div></div><div><div><em>&nbsp; for i := 1 to PDFLibrary.PageCount do</em></div></div><div><div><em>&nbsp; begin</em></div></div><div><div><em>&nbsp; &nbsp; // Select current page</em></div></div><div><div><em>&nbsp; &nbsp; PDFLibrary.SelectPage(i);</em></div></div><div><div><em>&nbsp; &nbsp; // Get list of images on the page</em></div></div><div><div><em>&nbsp; &nbsp; IL := PDFLibrary.GetPageImageList(0);</em></div></div><div><div><em>&nbsp; &nbsp; // Count number of images in the list</em></div></div><div><div><em>&nbsp; &nbsp; ic := PDFLibrary.GetImageListCount(IL);</em></div></div><div><div><em>&nbsp; &nbsp; for k := 1 to ic do</em></div></div><div><div><em>&nbsp; &nbsp; begin</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; // Iterate through each image and get the</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; // image type and image ID</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; it := PDFLibrary.GetImageListItemIntProperty(IL, k, 400);</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; gid := PDFLibrary.GetImageListItemIntProperty(IL, k, 405);</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; // Choose the approrpriate file extenion based on</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; // the returned image type</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; case it of</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; 1:</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename := 'c:\temp\image-' + gid.ToString + '-' + k.ToString + '.jpg';</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; 2:</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename := 'c:\temp\image-' + gid.ToString + '-' + k.ToString + '.bmp';</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; 3:</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename := 'c:\temp\image-' + gid.ToString + '-' + k.ToString + '.tif';</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; 4:</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename := 'c:\temp\image-' + gid.ToString + '-' + k.ToString + '.png';</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; end;</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; // Save the selected image to disk</em></div></div><div><div><em>&nbsp; &nbsp; &nbsp; PDFLibrary.SaveImageListItemDataToFile(IL, k, 0, filename);</em></div></div><div><div><em>&nbsp; &nbsp; end;</em></div></div><div><div><em>&nbsp; end</em></div></div><div><div><em>end;</em></div></div></blockquote><div><em><br></em></div><div><em>The result of</em></div><div><em>DAGetImageListCount in example 1 and</em></div><div><em>GetImageListCount in example 2 is 0</em></div><div><em>Both codes don't give me images back, in different pdf files, in other pdf files the images are given back correctly!</em></div><div><em><br></em></div><div><em>Is it possible that the images i see are watermarks ore stamps?</em></div><div><em>How to read out these?</em></div><div><em><br></em></div><div><em>Stefan</em></div><em></em><span style="font-size:10px"><br /><br />Edited by skoschke - 11 Jan 17 at 1:35PM</span>]]>
   </description>
   <pubDate>Wed, 11 Jan 2017 13:32:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13640.html#13640</guid>
  </item> 
  <item>
   <title><![CDATA[DAGetImageListCount does not work : I suggest you show your actual...]]></title>
   <link>http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13639.html#13639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3432<br /><strong>Posted:</strong> 11 Jan 17 at 12:59PM<br /><br />I suggest you show your actual code, so that people can first eliminate obvious problems.]]>
   </description>
   <pubDate>Wed, 11 Jan 2017 12:59:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13639.html#13639</guid>
  </item> 
  <item>
   <title><![CDATA[DAGetImageListCount does not work : If i open different PDF files...]]></title>
   <link>http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13638.html#13638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2925">skoschke</a><br /><strong>Subject:</strong> 3432<br /><strong>Posted:</strong> 11 Jan 17 at 12:36PM<br /><br />If i open different PDF files and use QP.DAGetImageListCount to get images from these files, i get no images.<div><br></div><div>If i open the file in any pdf viewer, i can see a background image.</div><div><br></div><div>What can i do to extract the images?</div><div><br></div><div>Second problem:</div><div><br></div><div>if i use QP.ExtractPageTextBlocks(3) i get text from pdf file, but in some cases i get wrong text, for example "PhoNe nuMber" insted of "Phone number" what i can see in any pdf viewer?</div><div>&nbsp;</div><div>Stefan</div>]]>
   </description>
   <pubDate>Wed, 11 Jan 2017 12:36:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dagetimagelistcount-does-not-work_topic3432_post13638.html#13638</guid>
  </item> 
 </channel>
</rss>