Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Glyphs #6

Open
spraguey opened this issue Mar 5, 2017 · 3 comments
Open

Missing Glyphs #6

spraguey opened this issue Mar 5, 2017 · 3 comments

Comments

@spraguey
Copy link

spraguey commented Mar 5, 2017

There seems to be a problem with missing glyphs and this extension. I get the following error... "U+000D is not available in this font's Encoding". I tried running the document through Preflight in Acrobat and it does not find any font issues. I also confirmed the fonts are embedded.

I'm using it like this...

<cfpdfform
	source="myfile.pdf"
	destination="c:\mydestination"
	action="populate"
	overwrite="yes">
	<cfpdfformparam name="myfield" value="#fieldvalue#" />
</cfpdfform>

And the error comes from /pdfform/pdfform.cfc line 148.

I confirmed that my field values do not contain any odd encoding or characters. In fact, even if I pass in an empty string as the value I get the error. I know it is probably something to do with the source document, but it does work correctly in Adobe ColdFusion with cfpdfform. I can't find anything wrong with the PDF.

If you want to see the PDF, I can send it to you privately. I'd rather not post it here.

Thanks for any help you can provide!

@spraguey
Copy link
Author

spraguey commented Mar 6, 2017

Update on the above issue. I misdiagnosed where the problem was. As it turns out, this is an issue with the data being inserted into the fields. For some reason, it cannot process line breaks (chr(13) and chr(10)). Is this a bug in the CFC, or is there some sort of encoding I need to apply to the text string in order to allow line breaks to be processed by cfpdfform?

If I replace all the chr(13) and chr(10) in the strings, the PDF renders. Of course, the line breaks are important, so this is not a great solution.

@cfmitrah
Copy link
Member

cfmitrah commented May 19, 2017

@spraguey Sorry for delayed response. Please PM me the PDF which you are using & reproducible steps to diagnose it.

Or If you could make a PR for the issue, that is most welcome

@illequipped
Copy link
Contributor

@spraguey i know your original question is ancient, but pull request #17 would solves this issue. You need a font other than the base 14 fonts that come embedded in pdfs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants