Jump to content

PDF File from URL


acaprice

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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://".

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...