#1
|
||||
|
||||
![]()
Does anyone have a script that will read a PDF and return the number of pages within the PDF?
__________________
Kal Bedi FusionPro Desktop 10.1.9 Adobe Acrobat Pro DC Mac OS Sierra 10.12.5 Canada |
#2
|
||||
|
||||
![]()
Give this a shot:
Code:
return CreateResource("filename.pdf", "graphic").countPages; |
#3
|
||||
|
||||
![]()
Thanks Thomas but...
I get over 10,000 pdf's weekly and I have a data field called "PD_GRAPHIC" that pulls them in so how can I revise what you wrote to use that field to count the pages? Thanks Kal
__________________
Kal Bedi FusionPro Desktop 10.1.9 Adobe Acrobat Pro DC Mac OS Sierra 10.12.5 Canada |
#4
|
||||
|
||||
![]() Quote:
Sample files showing your input and expected output would be helpful. |
#5
|
||||
|
||||
![]()
Hi, my data has 10,000 records and the field "PD_GRAPHIC" has all the PDF names and I'm using that field to do a graphic image pull into a FusionPro letter.
I just want to use that same data field in FusionPro to return how many pages there are within the PDF and I'm going to print that number on the letter. Hope that makes sense.
__________________
Kal Bedi FusionPro Desktop 10.1.9 Adobe Acrobat Pro DC Mac OS Sierra 10.12.5 Canada |
#6
|
||||
|
||||
![]()
In that case it is just a matter of putting the field name in. This would go in a regular text rule. Just call the rule wherever you need to put the page count number.
Quote:
|
#7
|
||||
|
||||
![]()
Thank you Thomas.
__________________
Kal Bedi FusionPro Desktop 10.1.9 Adobe Acrobat Pro DC Mac OS Sierra 10.12.5 Canada |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|