<?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 : transparent jpeg images</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 : transparent jpeg images]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 05:17:00 +0000</pubDate>
  <lastBuildDate>Wed, 11 Nov 2009 15:56:45 +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=1270</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[transparent jpeg images : Hi there,I have a problem with...]]></title>
   <link>http://www.quickpdf.org/forum/transparent-jpeg-images_topic1270_post5824.html#5824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1142">divo</a><br /><strong>Subject:</strong> 1270<br /><strong>Posted:</strong> 11 Nov 09 at 3:56PM<br /><br />Hi there,<br><br>I have a problem with grayscale jpeg images. If I add a grayscale jpeg and set an image mask for transparency no error is thrown, but if your view the pdf via Acroread 9.2 it informs you about an error on the page.<br><br>Below is a small program that reproduces the behaviour. (I'm using Delphi2009) At the end of this post is a base64 encoded 1x1-px jpeg that one can use.<br><br>Is this a bug in the library or am I doing something wrong here? <br><br><br><font face="Courier New, Courier, mono" size="2">program error;<br><br>{$APPTYPE CONSOLE}<br><br>uses<br>&nbsp; SysUtils,<br>&nbsp; QuickPDF0717;<br><br>var<br>&nbsp; QP: TQuickPDF0717;<br>&nbsp; retval: Integer;<br><br>begin<br>&nbsp; try<br>&nbsp;&nbsp;&nbsp; QP:= TQuickPDF0717.Create;<br>&nbsp;&nbsp;&nbsp; if QP.UnlockKey(YOUR KEY HERE) = 0 then raise Exception.Create('UnlockKey');<br>&nbsp;&nbsp;&nbsp; if QP.NewDocument = 0 then raise Exception.Create('NewDocument');<br>&nbsp;&nbsp;&nbsp; if QP.AddImageFromFile('error.jpg', 0) = 0 then raise Exception.Create('AddImageFromFile');<br>&nbsp;&nbsp;&nbsp; if QP.SetImageMask(0.9, 0.9, 0.9, 1, 1, 1) = 0 then raise Exception.Create('SetImageMask');<br>&nbsp;&nbsp;&nbsp; if QP.DrawScaledImage(0, QP.ImageHeight, 0.5) = 0 then raise Exception.Create('DrawImage');<br>&nbsp;&nbsp;&nbsp; if QP.SaveToFile('dummy.pdf') = 0 then raise Exception.Create('SaveToFile');<br><br>&nbsp; except<br>&nbsp;&nbsp;&nbsp; on E:Exception do begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Writeln(E.Classname, ': ', E.Message);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Readln;<br>&nbsp;&nbsp;&nbsp; end;<br>&nbsp; end;<br>end.</font><br><br><br><font face="Courier New, Courier, mono">/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEP<br>ERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/wAALCAABAAEBAREA/8QAFAABAAAAAAAA<br>AAAAAAAAAAAACP/EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAD8AZb//2Q==<br></font><br>]]>
   </description>
   <pubDate>Wed, 11 Nov 2009 15:56:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/transparent-jpeg-images_topic1270_post5824.html#5824</guid>
  </item> 
 </channel>
</rss>