ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDF pages count
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

graph_man

257 Posts

Posted - May 28 2021 :  11:46:46  Show Profile  Reply
Please advise a 100% working way to learn the number of pages in a PDF file.
IEGetFileFramesCount doesn't work (result is 0).

xequte

6143 Posts

Posted - May 31 2021 :  03:27:20  Show Profile  Reply
Hi

What version of ImageEn are you using? What plug-in are you using for PDF read support?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

graph_man

257 Posts

Posted - May 31 2021 :  08:18:22  Show Profile  Reply
> What version of ImageEn are you using?

I am using 9.2.0, but can install the latest.

> What plug-in are you using for PDF read support?

GhostScript. Are there other variants?
Go to Top of Page

xequte

6143 Posts

Posted - May 31 2021 :  19:15:49  Show Profile  Reply
Hi

10.0.0 and newer support our new PDFium plug-in:

https://www.imageen.com/download/

You can also use WPCubed's plug-in:

https://www.imageen.com/wpviewpdf/

Both will give much more accurate IEGetFileFramesCount. Otherwise it cannot get the frame count from compressed or encrypted files.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

graph_man

257 Posts

Posted - Jun 01 2021 :  12:29:04  Show Profile  Reply
Is PDFium free?
Go to Top of Page

xequte

6143 Posts

Posted - Jun 01 2021 :  20:20:04  Show Profile  Reply
Yes, it is.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

graph_man

257 Posts

Posted - Jun 04 2021 :  08:29:41  Show Profile  Reply
There is issue after installing 10.0.1 version:

[BCC32 Error] ws2def.h(670): E2015 Ambiguity between 'SIZE_T' and 'Iexpdfiumlib::SIZE_T'
Failed

ps
C++Builder 2010
Go to Top of Page

graph_man

257 Posts

Posted - Jun 04 2021 :  08:36:55  Show Profile  Reply
ws2def.h(670):
typedef struct _WSACMSGHDR {
SIZE_T cmsg_len;
INT cmsg_level;
INT cmsg_type;
/* followed by UCHAR cmsg_data[] */
} WSACMSGHDR, *PWSACMSGHDR, FAR *LPWSACMSGHDR;
Go to Top of Page

graph_man

257 Posts

Posted - Jun 04 2021 :  09:43:49  Show Profile  Reply
How to use PDFium plug-in?
Need something also besides ImageEn?
Do I need to use additional DLLs?

Since after installing the latest version, the program still does not determine the number of pages in pdf.
Go to Top of Page

xequte

6143 Posts

Posted - Jun 04 2021 :  19:48:51  Show Profile  Reply
Hi

What is ws2def. Is that one of your units?

To use PDFium you also need to download the DLL and put it in your EXE folder:

https://www.imageen.com/download/


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

graph_man

257 Posts

Posted - Jun 05 2021 :  07:28:38  Show Profile  Reply
> What is ws2def. Is that one of your units?

Windows, WinSock

> To use PDFium you also need to download the DLL and put it in your EXE folder:

Thanks
Go to Top of Page

xequte

6143 Posts

Posted - Jun 06 2021 :  04:36:40  Show Profile  Reply
Hi

For the next update we have changed the variable declaration of SIZE_T.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

graph_man

257 Posts

Posted - Jun 07 2021 :  06:18:43  Show Profile  Reply
Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: