Page 1 of 1

File Size of the Current File

Posted: Fri Aug 11, 2017 6:22 pm
by mmasood
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

Re: File Size of the Current File

Posted: Mon Aug 14, 2017 2:23 pm
by Sasha - Tracker Dev Team
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

Re: File Size of the Current File

Posted: Wed Aug 16, 2017 6:59 pm
by mmasood
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

Re: File Size of the Current File

Posted: Thu Aug 17, 2017 7:49 am
by Sasha - Tracker Dev Team
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

Re: File Size of the Current File

Posted: Mon Aug 28, 2017 7:44 pm
by mmasood
Hi Alex,

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

Regards,
M

Re: File Size of the Current File

Posted: Tue Aug 29, 2017 10:57 am
by Sasha - Tracker Dev Team
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

Re: File Size of the Current File

Posted: Tue Aug 29, 2017 1:19 pm
by mmasood
Thanks for the update :)

Re: File Size of the Current File

Posted: Tue Aug 29, 2017 1:29 pm
by Sasha - Tracker Dev Team
:)