Hi Andries, Interesting that it took over 1000 lines of code to just get the number of pages. Things always seem simple on the surface but sometimes are different than they appear. Thanks for a good question and a chance for all of us to learn!
All my best, Charlie Chambers ----- Original Message ----- From: Andries Bos To: [email protected] Sent: Saturday, January 23, 2010 1:20 AM Subject: Re: [delphi-en] counting PDF pages Thanks Charlie. Never found this article before. I will have a look. andries ________________________________ Slide scanning / dia's scannen vanaf / from E0,08c www.scancare.nl ________________________________ ________________________________ From: Charlie Chambers <[email protected]> To: [email protected] Sent: Sat, January 23, 2010 12:32:50 AM Subject: Re: [delphi-en] counting PDF pages Hi Andries, Here's a link to Code and a DLL. http://www.angusj. com/delphitips/ pdfpagecount. php Cheers, Charlie Chambers ----- Original Message ----- From: Andries Bos To: delphi advanced group Sent: Monday, January 18, 2010 2:19 PM Subject: [delphi-en] counting PDF pages I woudl like to count pages in PDF files in one directory. At this moment I'm playing with the ocx TAcroPDF to display a pdf file, but although there are some methods to print pages 'from' and 'to' , I could not find the property /way to retrieve the amount of pages within the selected pdf file. any ideas? Th cusromer uses the full version 'Acrobat version 9' , but I use within my develment only the reader. Is this enough to retrieve this information. Also a better way is to read pdf files without a visible control. Because I only want to read the amount of pages, there is no nead for diplaying the files. regards Andries ____________ _________ _________ __ Slide scanning / dia's scannen vanaf / from E0,08c www.scancare. nl ____________ _________ _________ __ [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]

