acaprice Posted January 22, 2014 Share Posted January 22, 2014 We have a 2 page (front & back) postcard FusionPro template we have been using for 8 or so years that uses the following to load either page 1 or page 2 of the PDF in a FusionPro text box, here are the Rules we use: Front: return "<graphic file=" + Field("PDFfile") + " pagenumber=" + ("2") +" >" ; Back: return "<graphic file=" + Field("PDFfile") + " pagenumber=" + ("1") +" >" ; It has been working great for us for years using LOCAL PDFs stored the same folder as the FusionPro template. We now have a new customer who will be sending us a URL for the 2 page PDF instead. We have been working with URLs for JPEGs for years and those work great, but we can't figure out the script for a URL to a 2 page PDF. Any ideas on a script to handle this? Thank you in advance. We use FusionPro 8.0.2 on a mac running 10.7.5. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 22, 2014 Share Posted January 22, 2014 Try this instead: var r = CreateResource(Field("PDFfile"), "graphic"); r.pagenumber = 2; return r.content; Quote Link to comment Share on other sites More sharing options...
acaprice Posted January 22, 2014 Author Share Posted January 22, 2014 Thank you for the quick response! I tried that as a Graphic and Text rule and it says Error: In CreateResource(), resource "https://mylinkhere.com.com/directory/2014122.pdf" does not exist. Of course i changed the URL in the error, but the file does exist through when loaded in a browser. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 22, 2014 Share Posted January 22, 2014 Thank you for the quick response! I tried that as a Graphic and Text rule and it says Error: In CreateResource(), resource "https://mylinkhere.com.com/directory/2014122.pdf" does not exist. Of course i changed the URL in the error, but the file does exist through when loaded in a browser. This doesn't work with secured URLs starting with "https://". Your URL has to start with "http://". Quote Link to comment Share on other sites More sharing options...
acaprice Posted January 23, 2014 Author Share Posted January 23, 2014 Awesome and it works with our local PDFs as well. Thank you Dan, really appreciate the quick response! Quote Link to comment Share on other sites More sharing options...
acaprice Posted January 23, 2014 Author Share Posted January 23, 2014 One more comment we sent the file as a PPML file to our FusionPro Direct server and got and error: Return Code: 2147483647 in my Direct Job Monitor. If i send it as a PDF there is no error but our workflow works best with PPML. Any settings need to be changed on the FusionPro Direct? Thanks! Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 23, 2014 Share Posted January 23, 2014 One more comment we sent the file as a PPML file to our FusionPro Direct server and got and error: Return Code: 2147483647 in my Direct Job Monitor. If i send it as a PDF there is no error but our workflow works best with PPML. Any settings need to be changed on the FusionPro Direct? Thanks! It's hard to say what the problem is without more information. If you compose locally, not through FP Direct, do you get the same error? Is there a log file generated with either composition? Quote Link to comment Share on other sites More sharing options...
acaprice Posted January 23, 2014 Author Share Posted January 23, 2014 When I process it locally it crashes FusionPro. The log file for the FusionPro Direct is: Cannot access requested hyphenation dictionary "/Volumes/pcs2/\Program Files\Printable\Fusi#0", using default dictionary. Job started 09:53:26 - 1390488806. Creator: FusionPro VDP Producer 8.0.20 Computer Name: POSTER1-PC Current working folder: C:\Windows\system32 Template File: C:\FusionPro\FusionProJobs\1390488805\5x8-file.dif Input File: C:\FusionPro\FusionProJobs\1390488805\1390488805\B5x8-file-012214-1.csv Job Config File: C:\FusionPro\FusionProJobs\1390488805\1390488805\file-5x8-012214--n.FPDirectConfig Composing record #1, input record 1 Transparency detected in PDF file C:\Windows\TEMP\FusionPro1084. The image may not print correctly in PostScript based output. The Return Code is a -10000 as well. Looks like it stopped processing for some reason, since I do not see any records. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 23, 2014 Share Posted January 23, 2014 Okay, thanks for the info. I think further analysis would require access to the job files so that we can reproduce the crash. Please contact FusionProSupport@PTI.com. The other thing you could try is to install a later version of FusionPro. It's possible that the bug has already been fixed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.