PDF as "raw" string from CoreDoc?  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

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.
Post Reply
zarkogajic
User
Posts: 650
Joined: Thu Sep 05, 2019 12:35 pm

PDF as "raw" string from CoreDoc?

Post by zarkogajic » Tue Mar 31, 2020 8:17 am

Hi support,

Is there a way to get the full PDFs raw string from the IPXC_Document?

Say I have a CoreDoc open via op.opendoc - I'd like to calculate its MD5/SHA ...


-žarko

User avatar
Sasha - Tracker Dev Team
User
Posts: 4888
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PDF as "raw" string from CoreDoc?  SOLVED

Post by Sasha - Tracker Dev Team » Tue Mar 31, 2020 1:54 pm

Hello žarko,

There is no way of getting the document as string. If you read the document from somewhere - that's where you can get your string. If you have a newly created or modified document then you will need to save it first. If the document was saved two times with no changes - there is no guarantee that the resulting documents will match.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

zarkogajic
User
Posts: 650
Joined: Thu Sep 05, 2019 12:35 pm

Re: PDF as "raw" string from CoreDoc?

Post by zarkogajic » Tue Mar 31, 2020 2:10 pm

Hi Alex,

Thanks.

p.s.
That would be a nice feature: to save or load from memory (stream).


User avatar
Sasha - Tracker Dev Team
User
Posts: 4888
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PDF as "raw" string from CoreDoc?

Post by Sasha - Tracker Dev Team » Tue Mar 31, 2020 3:31 pm

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply