<?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 : AddSubsettedFont Problems</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 : AddSubsettedFont Problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 28 Jun 2026 20:18:46 +0000</pubDate>
  <lastBuildDate>Fri, 24 Feb 2012 12:53:41 +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=2168</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[AddSubsettedFont Problems :  On closer look, at least with...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9226.html#9226</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 24 Feb 12 at 12:53PM<br /><br />On closer look, at least with Option 4, it doesn't appear that fonts in the NoEmbedFontList are being embedded (so that is good!)<br><br>So the only question that remains for me is if I need to add all variants of the NoEmbedFontList (Bold, Italic, etc....) to the NoEmbedFontList if I don't want them to be embedded.<br><br><br><span style="font-size:10px"><br /><br />Edited by jpbro - 24 Feb 12 at 1:31PM</span>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 12:53:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9226.html#9226</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : I originally had option 4 there,...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9225.html#9225</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 24 Feb 12 at 12:44PM<br /><br />I originally had option 4 there, but I was having trouble with font embedding. I then changed it to 2 because I didn't see option 4 in the online documentation (see http://www.quickpdflibrary.com/help/quickpdf/LoadFromCanvasDC.php ) so I thought I had used it in error. I guess you must have told me to use it another time, and this time I will make sure to comment this code to avoid the problem again in the future. I've tried using option 4 again, and it appears to be working, so thank you.<br><br>What I can't explain though is why fonts seem to be embedded even if they are in the NoEmbedFontList? Is this a bug?<br><br>Also, assuming that the NoEmbedFontList is working, do I need to put entries for Bold, Italic, etc... I notice the PDF can have entries such as "Arial,Bold" and "Arial,Italic", etc... so to prevent embedding of Arial entirely, do I need to do something like:<br><br>QP.NoEmbedFontListAdd "Arial"<br>QP.NoEmbedFontListAdd "Arial,Bold"<br>QP.NoEmbedFontListAdd "Arial,Italic"<br>etc...<br><br>or is QP.NoEmbedFontListAdd "Arial" enough to prevent any style of Arial from being embedded?<br><br>Thanks for your help Andrew.<br>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 12:44:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9225.html#9225</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : Have you tried option 4 with the...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9222.html#9222</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 24 Feb 12 at 9:09AM<br /><br />Have you tried option 4 with the Qpdf.NewPageFromCanvasDC 96, 4 &nbsp;function.<div><br></div><div><div>3 = Process the drawing commands as vector graphics, fonts not in the no embed</div><div>font list are embedded and compressed</div><div>4 = Same as 3 but fonts already added during previous calls to this function or the</div><div>LoadFromCanvasDC function are reused</div><div><br></div><div><br><div><br></div></div></div>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 09:09:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9222.html#9222</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : I&amp;#039;ve created a small sample...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9217.html#9217</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 23 Feb 12 at 3:21PM<br /><br />I've created a small sample VB6 project that uses the features using to demonstrate the problem concisely.<br><br>It performs the following operations:<br>1) Creates a 100 page document<br>2) Each page has only the text "abcdef 0123" on it<br>3) Each page alternates between a font in the NoEmbedFontList ("Tahoma") and a font that we want embedded that might not be on a target system ("Monaco", but you can change this to a font you have).<br><br>This creates an almost 20MB PDF file, but ideally it would only embed the Monaco font once instead of 50 times. Is this possible to achieve with QuickPDF?<br><br>Link:<br><a href="http://www.statslog.net/pdffont&#101;mbed.zip" target="_blank">http://www.statslog.net/pdffontembed.zip</a><br>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 15:21:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9217.html#9217</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : Regarding Helvetica - since it...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9216.html#9216</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 23 Feb 12 at 2:38PM<br /><br />Regarding Helvetica - since it is one of the PDF standard fonts, should this mean that it should never be embedded by QuickPDF?]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 14:38:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9216.html#9216</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : The PDF is generated exclusively...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9215.html#9215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 23 Feb 12 at 1:56PM<br /><br />The PDF is generated exclusively using QuickPDF from a proprietary template format. Let me give you some background first:<br><br>Our template/layout file format is an Sqlite database that allows users to position textboxes (RTF), data fields, lines, images, etc... anywhere on a page. There can be dozens of these objects per page. The layout, font and character possibilities are essentially endless.<br><br>We then parse this template database, merge in data from other databases and send drawing commands to QuickPDF to generate the fully rendered PDF.<br><br>In the case of RTF TextBoxes, I'm using GetCanvasDC on the first call to a RTF drawing operation, then draw the RTF to that DC. Subsequent calls to RTF drawing use the same DC unless a non-RTF drawing operation is encountered.<br><br>When an operation such as drawing an image or a line is encountered, I call LoadFromCanvasDC, then merge document to the main document, capture the page and draw it over the active page in the main document. I then process the line or image drawing operation using the QuickPDF DrawLine, DrawImage or DrawBox methods as appropriate on the active page in the main document.<br><br>These operations continue until all of the objects have been drawn on the page and the document is complete.<br><br>My guess at the 10 pages is that there are 9 times that I'm performing the LoadCanvasDC &gt; &gt; MergeDocument &gt; CapturePage process (which automatically deletes the capture page, thus making it appear as if there were more pages originally).<br><br>As to where the Helvetica font came from, I have no idea - I don't even have that font on my system and I have put Helvetica in my NoEmbedFontList, so I don't know why it should have been included? Tahoma is also on my NoEmbedFontList, so it shouldn't be included either should it?<br><br>When I use LoadFromCanvasDC with an option of 2, does QuickPdf embed all of the fonts used in the DC even if they've been previously embedded? That is - is there no way for QuickPDF to notice that a font has already been embedded before it embeds it again? <br><br>Also, shouldn't LoadFromCanvasDC be honouring the NoEmbedFontList when used with an option of 2?<br><br>Lastly, does it make more sense to move this conversation to a support ticket?<br><br>Thanks a lot for your help Andrew.<br><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 13:56:15 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9215.html#9215</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : The PDF looks like it originally...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9213.html#9213</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 23 Feb 12 at 8:04AM<br /><br />The PDF looks like it originally have 10 pages but these have been deleted. &nbsp;Also there are multiple copies of embedded Type1 fonts such as Tahoma and Helvetica but they don't seem to be referenced anywhere.<div><br></div><div>If you load the PDF file in Notepad or some other text editor you can scroll through and see the fonts in the PDF file.</div><div><br><div><br></div><div><br></div><div><br></div><div>Andrew.</div></div>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 08:04:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9213.html#9213</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : One problem: the resultant PDF...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9211.html#9211</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 22 Feb 12 at 8:38PM<br /><br />One problem: the resultant PDF files are now quite large (4ish MB instead of 200ish KB). <br><br>Maybe QPDF is embedding fonts even if they are in the NoEmbedFontList? Or maybe it is embedding the same font multiple time for each call that I've made to EM_FORMATRANGE on the CanvasDC?<br><br>I don't know enough about the internals of PDF files to know, but I've attached a sample PDF if anyone has the time to inspect it and tell me why it is so large. I appreciate the help.<br><br><a href="http://www.statslog.net/font&#101;mbed.pdf" target="_blank">http://www.statslog.net/fontembed.pdf</a><br><br><br>]]>
   </description>
   <pubDate>Wed, 22 Feb 2012 20:38:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9211.html#9211</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : Looks like the mistake was mine...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9210.html#9210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 22 Feb 12 at 7:59PM<br /><br />Looks like the mistake was mine - I was mysteriously using an option of 4 (which doesn't exist) in LoadFromCanvasDC instead of 2...Sorry if I've wasted your time!<br>]]>
   </description>
   <pubDate>Wed, 22 Feb 2012 19:59:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9210.html#9210</guid>
  </item> 
  <item>
   <title><![CDATA[AddSubsettedFont Problems : I&amp;#039;ve switched to AddTrueTypeSubsettedFont...]]></title>
   <link>http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9201.html#9201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1571">jpbro</a><br /><strong>Subject:</strong> 2168<br /><strong>Posted:</strong> 22 Feb 12 at 2:41PM<br /><br />I've switched to AddTrueTypeSubsettedFont as per Andrew's recommendations in another thread, but I'm getting the same output as above, so still no luck.]]>
   </description>
   <pubDate>Wed, 22 Feb 2012 14:41:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/addsubsettedfont-problems_topic2168_post9201.html#9201</guid>
  </item> 
 </channel>
</rss>