In my ColdFusion application, when exporting a PDF, it shows a popup (with title Adobe Reader) with the error message
"cannot extract the embedded font 'PCBOHZ + TimesNewRomanPS-BoldMT. some characters may not display or print correctly ( OR ) cannot extract TimesNewRomanPS-BoldMT"
The same PDF downloads in my local environment, and all other systems, without any issue. This issue occurs only in one of the client system (windows 8).
The <CFDocument>
tag is used to create PDF which uses font-family = "Helvetica"
. This PDF contains cfchart
images (contains ColdFusion generated HTML code). All of the html code of this PDF is rendered in the browser as a report dashboard view. On this dashboard, users click on a "PDF" button, and the same HTML content is placed inside the CFdocument
body, and raises the alert popup.
Initially I thought it's related to Adobe Acrobat Reader. Later I found that it is not a issue in the PDF creation. It seems like some CSS syntax issue, where I have given wrong font family name. There's no PCBOHZ + TimesNewRomanPS-BoldMT
font family name. I need to import that font ttf file in CF admin fonts.cfm file. But my doubt is if this is related to css style, the same HTML should not render in client browser right? Please share your thoughts.
Another Issue is CFDOCUMENT images are missing
In the generated PDF the images are showing as red cross marks, while creating PDF, CFDOCUMENT makes HTTP URL calls to coldfusion server to get the images from the CF virtual folder CFIDE/CFSERVLET (because these images are saved in this folder by cfchart tags based on the charting settings in CF administrator), In google I found the cause for this issue may be At the time of HTTP requests for images, due to ColdFusion is behind a firewall because of which CFPDF is not able to send any HTTP request (even though to itself) . due to this image requsets gets 404 status, so in the downloaded PDF it shows default HTML IMG tag red cross marks .One of the valuable coldfusion topic URL, there's a solution to work http requests by maintaining HOSTS File Entry - can add an entry for the internal IP to your HOSTS file. Please share your thoughts on this issue & suggest me what approach I should follow to resolve this.