EasyCFM.COM ColdFusion Forums / Coding Help! / Type 1 font in PDF issue

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Type 1 font in PDF issue

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

angrycoder
06-27-2012 @ 12:42 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 39
Joined: Apr 2008

Hello CF Family,
I have a function which creates the PDF from html text.
The problem is when it converting into the pdf it is not embedding the fonts which used in html text but attach true type 1 fonts which I am not using in html text. I do not want to attach true type 1 font in pdf which causes several issue.

You can see true type font in any pdf by File->Properties->Font Tab

Any idea to prevent this or embed font rather than attach? Embeded fonts will be in the font tab but comes with "embeded" besides the each font.

Thanks in advance.

Below is the function....


<cffunction name="htmltextToPDf" access="public" output="false" returntype="boolean" hint="Generate the pdf of html text">
     <cfargument name="htmlcontent" type="string" required="true">
     <cfargument name="newfilename" type="string" required="true" hint="The absolute path ">
     <cfargument name="propertiesOfPDf" type="struct" required="true" hint="such as margins for the PDF.">
     
     <cfset local.creation_status = "false">
     
     
          <cfdocument filename="#arguments.newfilename#" format="PDF" overwrite="true" embeded="true">
               <cfoutput>#arguments.htmlcontent#</cfoutput>
          </cfdocument>

</cffunction>

Enjoy yourself
AngryCoder

This message was edited by angrycoder on 6-29-12 @ 8:28 AM

angrycoder
07-05-2012 @ 6:52 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 39
Joined: Apr 2008

Fixed by hitting hammer on computer.. Smile

Enjoy yourself
AngryCoder

Sponsored By...
iOpenSoft, LLC is a Houston, Texas Advanced Technology Studio Specializing in Web Design, Web Development, iPhone App Development and Android App Development.