<?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 : Font Handling</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 : Font Handling]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 19:43:49 +0000</pubDate>
  <lastBuildDate>Fri, 14 Aug 2020 22:23:57 +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=3833</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[Font Handling : I&amp;#039;m glad you got such good...]]></title>
   <link>http://www.quickpdf.org/forum/font-handling_topic3833_post15344.html#15344</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1086">Jack</a><br /><strong>Subject:</strong> 3833<br /><strong>Posted:</strong> 14 Aug 20 at 10:23PM<br /><br /><div>I'm glad you got such good results.&nbsp; I will try the process I proposed later this year.&nbsp; The process I currently use only loads the fonts once, but copies a new instance of the form template multiple times, pre-pends a page number on each form field to give them unique names and then fills in the fields.&nbsp; Performance suffers as the page count goes up so I think I could not use this method if the page count goes over 500.&nbsp; Acrobat can copy the same logo or watermark on each page without appending it multiple times so I think making the form background like a logo or watermark should work similarly. <br></div><div><br></div><div>Thanks for posting the results of your further efforts.&nbsp; It sounds like you have a very good process.</div><div><br></div><div>Jack<br></div>]]>
   </description>
   <pubDate>Fri, 14 Aug 2020 22:23:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/font-handling_topic3833_post15344.html#15344</guid>
  </item> 
  <item>
   <title><![CDATA[Font Handling : An apology and correction.The...]]></title>
   <link>http://www.quickpdf.org/forum/font-handling_topic3833_post15342.html#15342</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 3833<br /><strong>Posted:</strong> 14 Aug 20 at 4:18AM<br /><br />An apology and correction.<div><br></div><div>The reason for the constantly increasing pdf file size (as posted above) was my error NOT a fault with the dll library.&nbsp; I was still adding some fonts for each page unnecessarily. My bad!</div><div><br></div><div>Correcting this has also improved the performance results - it now takes just 23 seconds verses the original 109 seconds - a reduction of 46 seconds (42%).</div><div><br></div><div>I am one happy chappie!&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 14 Aug 2020 04:18:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/font-handling_topic3833_post15342.html#15342</guid>
  </item> 
  <item>
   <title><![CDATA[Font Handling : Further to the file size issue.Generating...]]></title>
   <link>http://www.quickpdf.org/forum/font-handling_topic3833_post15341.html#15341</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 3833<br /><strong>Posted:</strong> 14 Aug 20 at 12:00AM<br /><br />Further to the file size issue.<div><br></div><div>Generating 100 identical pages using the code in the prior post produces pdf files that grow larger by 3KB per file. ie first pdf generated is 625 KB and the 100th pdf generated is 940 KB!</div><div><br><div>I have to assume that the pdf dll is not fully clearing up after a deletePages() call.</div><div><br></div><div>So the question is the huge performance increase out weighted by the increasing file sizes!</div><div>I guess I could create a new pdf instance every 100 or so files.</div><div><br></div><div>Cheers.</div></div>]]>
   </description>
   <pubDate>Fri, 14 Aug 2020 00:00:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/font-handling_topic3833_post15341.html#15341</guid>
  </item> 
  <item>
   <title><![CDATA[Font Handling : OK, so I tried the code as indicated...]]></title>
   <link>http://www.quickpdf.org/forum/font-handling_topic3833_post15340.html#15340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 3833<br /><strong>Posted:</strong> 13 Aug 20 at 11:29PM<br /><br />OK, so I tried the code as indicated in the prior post.<div>There is a wee problem in the pdf library so the revised code, that WORKS is:</div><div><br></div><div><div style=": rgb251, 251, 253;"><i>create pdf instance</i></div><div style=": rgb251, 251, 253;"><i>set document properties,&nbsp; page dimensions, fonts, images, etc</i></div><div style=": rgb251, 251, 253;"><i>loop</i></div><div style=": rgb251, 251, 253;"><i><span style="white-space: pre;">	</span>build the single page document</i></div><div style=": rgb251, 251, 253;"><i><span style="white-space:pre">	</span>if pdf.pageCount &gt; 1 then</i></div><div style=": rgb251, 251, 253;"><i><span style="white-space:pre">		</span>pdf.deletePages(1,1)<span style="white-space:pre">	</span>//delete the prior page</i></div><div style=": rgb251, 251, 253;"><i><span style="white-space:pre">	</span>endif;<span style="white-space:pre">				</span>//this leaves the last page only in the document</i></div><div style=": rgb251, 251, 253;"><i><span style="white-space: pre;">	</span>set unique file name</i></div><div style=": rgb251, 251, 253;"><i><span style="white-space: pre;">	</span>saveToFile<span style="white-space: pre;">				</span>//save the current document</i></div><div style=": rgb251, 251, 253;"><i><span style="white-space: pre;">	</span>pdf.newPage<span style="white-space: pre;">			</span>//add a page 2 to the current document, now the current page</i></div><div style=": rgb251, 251, 253;"><i>endLoop</i></div><div style=": rgb251, 251, 253;"><i>delete pdf instance</i></div></div><div style=": rgb251, 251, 253;"><i><br></i></div><div style=": rgb251, 251, 253;">The library seems not to correctly handle deleting a page if the only other page has not been 'touched'. Hence the code rework.</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Using my original code (a new pdf instance for every invoice) it took 69 seconds for 100 pages.</div><div style=": rgb251, 251, 253;">Using the above code it now takes 29 seconds - 40 seconds saving.</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Interestingly, the individual pdf file sizes are larger! 635KB under the old method and 880KB under the new faster method. No visible difference in the output and same compression etc used.</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Will try and figure out why!</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Cheers</div><div><i><br></i></div>]]>
   </description>
   <pubDate>Thu, 13 Aug 2020 23:29:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/font-handling_topic3833_post15340.html#15340</guid>
  </item> 
  <item>
   <title><![CDATA[Font Handling : Good morning Jack (well it&amp;#039;s...]]></title>
   <link>http://www.quickpdf.org/forum/font-handling_topic3833_post15339.html#15339</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 3833<br /><strong>Posted:</strong> 13 Aug 20 at 11:01PM<br /><br /><span style=": rgb251, 251, 253;">Good morning Jack (well it's morning where I am!),</span><div><span style=": rgb251, 251, 253;">Thank you for the response.&nbsp; I have yet to give it a try but am looking at the option suggested.</span></div><div><span style=": rgb251, 251, 253;">What I am trying now is:</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;"><i>create pdf instance</i></span></div><div><span style=": rgb251, 251, 253;"><i>set document properties,&nbsp; page dimensions, fonts, images, etc</i></span></div><div><span style=": rgb251, 251, 253;"><i>loop</i></span></div><div><span style=": rgb251, 251, 253;"><i><span style="white-space:pre">	</span>build the single page document</i></span></div><div><span style=": rgb251, 251, 253;"><i><span style="white-space:pre">	</span>set unique file name</i></span></div><div><span style=": rgb251, 251, 253;"><i><span style="white-space:pre">	</span>saveToFile<span style="white-space:pre">				</span>//save the current document</i></span></div><div><span style=": rgb251, 251, 253;"><i><span style="white-space:pre">	</span>pdf.newPage<span style="white-space:pre">			</span>//add a page 2 to the current document</i></span></div><div><span style=": rgb251, 251, 253;"><i><span style="white-space:pre">	</span>pdf.deletePage(1,1)<span style="white-space:pre">		</span>//delete page 1 of the current document</i></span></div><div><span style=": rgb251, 251, 253;"><i><span style="white-space:pre">						</span>//what was page 2 is now the current page</i></span></div><div><span style=": rgb251, 251, 253;"><i>endLoop</i></span></div><div><span style=": rgb251, 251, 253;"><i>delete pdf instance</i></span></div><div><span style=": rgb251, 251, 253;"><i><br></i></span></div><div><span style=": rgb251, 251, 253;">I have yet to prove that this will work, but am hopeful as it should be really fast and generate relatively small files.&nbsp;</span></div><div><span style=": rgb251, 251, 253;">Will provide an update should I be successful.</span></div><div><span style=": rgb251, 251, 253;">Again, thanks.</span></div><div><span style=": rgb251, 251, 253;">Cheers</span></div>]]>
   </description>
   <pubDate>Thu, 13 Aug 2020 23:01:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/font-handling_topic3833_post15339.html#15339</guid>
  </item> 
  <item>
   <title><![CDATA[Font Handling : I should have said &amp;#034;as many...]]></title>
   <link>http://www.quickpdf.org/forum/font-handling_topic3833_post15338.html#15338</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1086">Jack</a><br /><strong>Subject:</strong> 3833<br /><strong>Posted:</strong> 13 Aug 20 at 9:17PM<br /><br /><div>I should have said "as many references" of that page rather than copies.&nbsp; I think the visual forms are&nbsp; created inside the PDF viewer as needed sort of like calling a subroutine.</div><div><br></div><div>Jack<br></div>]]>
   </description>
   <pubDate>Thu, 13 Aug 2020 21:17:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/font-handling_topic3833_post15338.html#15338</guid>
  </item> 
  <item>
   <title><![CDATA[Font Handling : I would like to have tried out...]]></title>
   <link>http://www.quickpdf.org/forum/font-handling_topic3833_post15337.html#15337</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1086">Jack</a><br /><strong>Subject:</strong> 3833<br /><strong>Posted:</strong> 13 Aug 20 at 9:14PM<br /><br /><div>I would like to have tried out this solution so I could tell you that it works.&nbsp; I have to print a lot of forms at the end of the year and the file size gets pretty big when I do.&nbsp; When I get the time, what I intend to do is create one page that has the form background on it and then Clone that page with the function that comes with the Delphi version of the library listed in the reference guide as:<br></div><div><span ="fontstyle0">function </span><span ="fontstyle2">TDebenuPDFLibrary1711.ClonePages(StartPage, EndPage,</span></div><div><span ="fontstyle2"></span></div><div><span ="fontstyle2">RepeatCount: Integer): Integer;</span></div><div><span ="fontstyle2">I believe this will cause just one version of the page to be created and as many copies as RepeatCount calls for.&nbsp; Then, I can reference these additional pages to populate them with the data I need to report.&nbsp; It seems like this would solve the embedded fonts for you and fix my file size and speed issues.&nbsp; But I haven't tried it yet.</span></div><div><span ="fontstyle2">Cheers back.</span></div><div><span ="fontstyle2">Jack<br></span> </div>]]>
   </description>
   <pubDate>Thu, 13 Aug 2020 21:14:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/font-handling_topic3833_post15337.html#15337</guid>
  </item> 
  <item>
   <title><![CDATA[Font Handling : Hi folks,I want to generate multiple...]]></title>
   <link>http://www.quickpdf.org/forum/font-handling_topic3833_post15336.html#15336</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 3833<br /><strong>Posted:</strong> 13 Aug 20 at 1:27AM<br /><br /><div>Hi folks,</div>I want to generate multiple single page documents (invoices) that are appended to an email for distribution.<div>A number of fonts are used so at present I create a pdf instance, add the fonts, generate the single page, saveToFile and delete the pdf instance! Repeating the process for every invoice.</div><div>Is there a mechanism that would allow me to just have a single pdf instance and thus only have to add the fonts once?</div><div>It seems that if I use the Document capability, I still have to add the fonts each time.</div><div>Many thanks.</div><div>Cheers.</div>]]>
   </description>
   <pubDate>Thu, 13 Aug 2020 01:27:15 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/font-handling_topic3833_post15336.html#15336</guid>
  </item> 
 </channel>
</rss>