File Size of the Current File

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, 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.
Post Reply
mmasood
User
Posts: 99
Joined: Fri Sep 18, 2015 9:49 pm

File Size of the Current File

Post by mmasood » Fri Aug 11, 2017 6:22 pm

Hi Alex,

I am using Core Api and C#. I am creating a new document and adding some pages to it from another document until I get to a predefined file size.

Currently I have to do this by saving the file to the disk and then calling FileInfo.Length to get the file size.

Q. Is there a way that I can get the file size from within the IPXC_Document class?

Regards,
M

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

Re: File Size of the Current File

Post by Sasha - Tracker Dev Team » Mon Aug 14, 2017 2:23 pm

Hello mmasood,

Sadly, there is no direct method of doing that. The thing is that when we are saving the document, different compression methods are being used for streams etc, to reduce the output file size. Calculating this on the go will prove difficult, because of that.

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

mmasood
User
Posts: 99
Joined: Fri Sep 18, 2015 9:49 pm

Re: File Size of the Current File

Post by mmasood » Wed Aug 16, 2017 6:59 pm

Hi Alex,

Is this feature on the to do list for any near future releases? If no then I will have to try to find a way around this.

Regards,
M

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

Re: File Size of the Current File

Post by Sasha - Tracker Dev Team » Thu Aug 17, 2017 7:49 am

Hello mmasood,

To be sure, I will have to consult with one of our lead devs who is on vacation right now. He will be available from Monday though and then I can tell you more.

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

mmasood
User
Posts: 99
Joined: Fri Sep 18, 2015 9:49 pm

Re: File Size of the Current File

Post by mmasood » Mon Aug 28, 2017 7:44 pm

Hi Alex,

Were you able to get hold of the lead developer and get some information from him?

Regards,
M

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

Re: File Size of the Current File

Post by Sasha - Tracker Dev Team » Tue Aug 29, 2017 10:57 am

Hello mmasood,

Just double checked this one - this won't be implemented, because you can't calculate it on the go without saving.

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

mmasood
User
Posts: 99
Joined: Fri Sep 18, 2015 9:49 pm

Re: File Size of the Current File

Post by mmasood » Tue Aug 29, 2017 1:19 pm

Thanks for the update :)

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

Re: File Size of the Current File

Post by Sasha - Tracker Dev Team » Tue Aug 29, 2017 1:29 pm

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

Post Reply