Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting number of pages of a .pdf file
Message
 
To
22/09/2004 09:10:09
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00944943
Message ID:
00947169
Views:
28
Probably you may use this:
?yGetPDFPageCount(Fullpath_PDF_file_name)
*--------------
Function yGetPDFPageCount
lParameter pcFileNAme
Local lc
lc=FILETOSTR(pcFileNAme)
return OCCURS("TYPE/PAGE",UPPER(lc)) - OCCURS("TYPE/PAGES",UPPER(lc))
*or
*lc=SUBSTR(lc,AT("<</Type/Pages"+CHR(10)+"/Count",lc)+15)
*return LEFT(lc,AT(CHR(10),lc)-1)
>Hello,
>Is there anyway in my VFP 7 app to tell me the number of pages in a .pdf file it creates through crystal reports? I don't care if it tells me at the time it creates the file, or after the file is created and stored on disk. TIA!
>
>-MAC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform