Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening .PDF Document that has embedded fonts:

Status
Not open for further replies.

hunterspot

Programmer
Jun 3, 2009
22
US
Hi All
Greetings.
I am using the following code (in VFP 8.0) to open a .PDF file. It is working fine as long as the .PDF doesn’t contain any embedded fonts. It is giving error “OLE IDispatch exception code 65535 from CDINTF~1: Error opening PDF document.”.

Here is the code I am using to open the .PDF document.

lcDocName = “C:\pdfdocs\test.pdf”
pdfDocx = CREATEOBJECT([cdintfex.Document])
IF FILE(lcDocName)
= pdfDocx.OPENEX(lcDocName," ") &&& Getting error here.
Endif

I don't have any control over the creation of the .PDF document as it is created by some other process in .NET. I need to open it and append another static .PDF document to it before it is made available to the user.
I am under pressuer to deliver this as the need is urgent.

Any help is highly appreciated.
Thanks for your help and time
 
I don't have a finite answer for you, but you might find what you need by looking at:
Adobe Acrobat Automation With VB and Windows API

Yes, it isn't VFP code. You would have to convert from VB to VFP, but it might be worth a try.

Additionally you might find your answer by doing a Google search for: createobject adobe acrobat vfp

Good Luck,
JRB-Bldr
 
I know of a project where an archive of documents was moved to PDFs but somehow an Oriental language/font was specified when they were created even though it never appeared in the paperwork. In order to view the PDFs the users had to have that font installed on their workstations. It may be a similar situation in your case, though I'm not sure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top