Mark, Thank you for your direction Bill Ellis Director Digital Workflow Prime Digital Printing 937-291-3591 937-475-3939 -----Original Message----- From: Mark Hilger [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 10:53 AM To: FusionPro Users Forum Subject: [fusionpro] RE: Looking for a solution
Bill, This certainly can be done with FusionPro Desktop but the key (in my opinion) is in how you have the data along with some JavaScript to pull it all together. I'd say it's an intermediate towards advanced use of JavaScript but it definitely can be done. The best way I can think of to have this data would be to use 2 data files - a primary and a secondary data file. The Primary data file would include each "record" you are composing. I'll assume this is some customer data like name, address, etc. You'll also want a unique identifier in there that uniquely identifies the customer. Here's an example of some fields in that data file: CustomerID FirstName LastName Address Now in the secondary data file, you will want to list each PDF document you want for each customer. Given that you have a different number of PDF files to be inserted for each customer, note that there will be some varying number of records in this secondary data file for EACH customerID. Here's fields for that data file: CustomerID PDFfileName So the first 5 records in this secondary data file might be: Customer01,Brocure1.pdf Customer01,Brocure3.pdf Customer02,Brocure8.pdf Customer02,Brocure1.pdf Customer03,Brocure6.pdf See how we list each PDF file needed for each Customer on it's own line? Now in your template, there will be a couple of things happening. First, you want to use the ExternalDataFileEx object to point to the secondary file. Make sure you place this in your OnJobStart callback rule. Next, in OnRecordStart, you will want to loop through the records in the secondary data file to find all of the PDF files you need for that given customer. So if you were composing record 2 in the example I gave above (where the CustomerID is "Customer02"), you would want to loop through the secondary data file and see that PDFs "Brochure8.pdf" and "Brochure1.pdf" are the PDF's you need. These PDF's can be inserted as inline graphics (graphics that are returned into text frames as opposed to graphic frames). There's an example of how to do this in our Knowledge Base (http://www.printable.com/support/kb) called "Inserting Multi-page PDF variable graphics". You'll find that in the "Sample Jobs" area. This sample also shows you some key elements you will need to employ: - Using CreateResource() to dynamically point to these PDF files - Finding the total number of pages in these PDF files - Looping through and making a reference to each page for inclusion in the inline graphic stream Hope this helps you. I'm not sure what your level of JavaScript expertise is but just to let you know that if you are in a rush to get this template created, we do offer template building services if needed. Thanks, Bill --Mark Hilger Product Manager Printable Technologies, Inc. -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com -- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
