A forum for questions or concerns related to the PDF-XChange Core API SDK
Moderators:TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
...
if (PXC_CIType.CIT_XForm == itemType)
{
IPXC_XForm xform = doc. GetXFormByHandle(item.XForm_Handle);
if (xform != null)
{
IPXC_Content xform_con = GetContent(PXC_ContentAccessMode.CAccessMode_Readonly);
if (xform_con != null)
if (RecursiveFindImageInContent(xform_con))
return true;
}
}
...
Note: for your case is better to use the CAccessMode_Readonly instead of CAccessMode_WeakClone. Because the CAccessMode_Readonly is slightly faster and you don't change the content.
Also there exists another way than can be faster for most docs. Please look there: viewtopic.php?p=161781#p161781
- here you may find how to enumerate all pdf-objects in doc to handle images. But problem is that method will not 'see' an inline-images and also will see images that aren't on the pages...