esmith Posted January 20, 2010 Share Posted January 20, 2010 Is there any way to refer to the page NUMBER rather than the page NAME in JS to avoid adding custom naming to large PDFs? I have a 200+ page file that I want to print specific pages of for each record. I tried using the code: for (i=1;i<Field("START");i++) { FusionPro.Composition.SetBodyPageUsage(i,false); } for (i=Field("END")+1;i<=243;i++) { FusionPro.Composition.SetBodyPageUsage(i,false); } but got the error 'Page "1" does not exist'. Records may print pages 1-18, 212-240, or 113-186 in no particular order. I would prefer not to have to manually name each page. Do I have any other options?? Link to comment Share on other sites More sharing options...
Dan Korn Posted January 21, 2010 Share Posted January 21, 2010 Instead of trying to reference pages from a 200+ page PDF template document, I would rework the job so that you're grabbing the page(s) you need from an external PDF resource as inline graphics, using Overflow pages as necessary. Check out this post, or this post, or this post. Link to comment Share on other sites More sharing options...
esmith Posted January 21, 2010 Author Share Posted January 21, 2010 Thanks sir. I actually tried something along these lines after my post last night, but I was trying to set up template pages and overflow pages with <story> and <copyhole> tags, and I can't figure out how to use the markup with a separate data source and merge both with a template. Look for that as a separate post in the near future. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.