geeool Posted February 7, 2018 Share Posted February 7, 2018 Hi, I'm trying to program a piece for our EFI Digital Storefront. The end product will be two pages with three graphic frames on each page. I would like the buyer to upload a six page PDF and have page one assigned to the first graphic frame, page two assigned to the second graphic frame, etc. I know how to do this if the PDF file was a resource, but I'm stuck on how to turn a graphic file upload into a resource? Any suggestions would be appreciated. Thanks, Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 7, 2018 Share Posted February 7, 2018 The way you create a resource is with the CreateResource function, something like this: var myResource = CreateResource(Field("YourFieldName"), "graphic"); Quote Link to comment Share on other sites More sharing options...
geeool Posted February 7, 2018 Author Share Posted February 7, 2018 Thanks Dan, The code worked but it looks like DSF doesn't allow more than one page of the PDF to be displayed at a time. As soon as I add a second graphic frame to display another page of the PDF file, DSF errors out. This is true even if I make the PDF a resource added during programming as opposed to uploading. Creator handles it fine on my computer, but DSF returns a "can not communicate" error every time. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 8, 2018 Share Posted February 8, 2018 Thanks Dan, The code worked but it looks like DSF doesn't allow more than one page of the PDF to be displayed at a time. As soon as I add a second graphic frame to display another page of the PDF file, DSF errors out. This is true even if I make the PDF a resource added during programming as opposed to uploading. Creator handles it fine on my computer, but DSF returns a "can not communicate" error every time. You'll have to ask someone at EFI about that, or post to their DSF forum. 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.