Application throws an exception and returns "Error message: Incorrect PDEObject type"
Estimated Reading Time: 1 MinutesYou might see an error message when a font appears on a PDF document page but the viewing tool (such as Adobe Reader or Adobe Acrobat) can’t find the font or character map (CMap) encoding on the local machine. As a result the PDPageAcquirePDEContent cannot return the correct content for the page. The method cannot decode the character mapping for that font.
In this case, check to make sure your application correctly points to the /Resource folder in the directory structure where you installed the Adobe PDF Library on the local machine. This is where the font files are stored. The default directory structure would be:
C:\Datalogics\APDFL15.0.4\APDFL\Resource
Also, if it appears that the PDEContent of a page is empty, it may be that the call to PDPageAcquirePDEContent returned an embedded object contained within another object. Sometimes objects are nested in other objects in a PDF document, such as an image that is contained within a form on a page. In that case the call must be made recursively before the content can be found.