Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > FusionPro® VDP Creator

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 14th, 2017, 03:05 AM
MattiaDuesse MattiaDuesse is offline
Junior Community Member
 
Join Date: May 2017
Posts: 13
Post insert in a fusion pro template a page of a PDf

Hi,
Can i insert in a image box a page of PDF with a excel field.
a PDF have a 100 page and i want insert in fusion Pro a page of PDF.
For example i write in a field a directory of a pdf (crova/prova.pdf/page1)
Exist this method?
Thanks
Reply With Quote
  #2  
Old June 14th, 2017, 01:53 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,322
Default Re: insert in a fusion pro template a page of a PDf

You can write a graphic rule like so to show a specific page from a PDF resource in a graphic frame:
Code:
var r = CreateResource("filename.pdf");
r.pagenumber = 2;
return r;
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #3  
Old June 15th, 2017, 12:03 AM
MattiaDuesse MattiaDuesse is offline
Junior Community Member
 
Join Date: May 2017
Posts: 13
Default Re: insert in a fusion pro template a page of a PDf

Ah wonderfull!!
But can i select a page of pdf by a field of file excel?
And have i create a new rule? In ghrapics frame What should I write?
Thanks!!
Reply With Quote
  #4  
Old June 15th, 2017, 08:45 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,322
Default Re: insert in a fusion pro template a page of a PDf

Quote:
Originally Posted by MattiaDuesse View Post
Ah wonderfull!!
But can i select a page of pdf by a field of file excel?
If you mean that you have a data field which specifies the page number, or the PDF file name, you can do something like this:
Code:
var r = CreateResource(Field("PDFName"));
r.pagenumber = Field("PageNumber");
return r;
I'm just guessing at your field names, of course. I could provide more specific suggestions with more information, such as the collected job, or at least the data file. (Note that whether the data file is Excel or some other format makes no difference.)
Quote:
Originally Posted by MattiaDuesse View Post
And have i create a new rule? In ghrapics frame What should I write?
Thanks!!
Yes, you would create a new rule of type Graphic / JavaScript. Then you would select graphic frame, and in the Frame Properties palette, select the rule's name in the [Field or Rule] drop-down.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #5  
Old June 16th, 2017, 06:02 AM
MattiaDuesse MattiaDuesse is offline
Junior Community Member
 
Join Date: May 2017
Posts: 13
Default Re: insert in a fusion pro template a page of a PDf

Hi, it's work good!!
And if would i change proportion in a rule?
It's possible??
Thanks!
Reply With Quote
  #6  
Old June 16th, 2017, 09:44 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,322
Default Re: insert in a fusion pro template a page of a PDf

Quote:
Originally Posted by MattiaDuesse View Post
Hi, it's work good!!
And if would i change proportion in a rule?
It's possible??
Thanks!
If it's being placed into a graphic frame, then you can adjust the size of the frame itself, and you can adjust the scaling and cropping of the graphic within the frame by using the controls on the Frame Properties palette.

If it's an inline graphic, in a text frame, then you need to output a <graphic> tag from a text rule, with either (or both) the width or height attributes set (in hundredths of points, 7200 per inch), something like this:
Code:
return '<graphic file="' + Field("PDFName") + '" pagenumber="' +Field("PageNumber") + '" width=7200 height=7200>';
For more information, please refer to the section "Inline Graphics" in the FusionPro User Guide, and the section "Graphic Tag Inside Story Tag / Inline Graphics" in the FusionPro Tags Reference.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #7  
Old June 19th, 2017, 10:04 AM
MattiaDuesse MattiaDuesse is offline
Junior Community Member
 
Join Date: May 2017
Posts: 13
Default Re: insert in a fusion pro template a page of a PDf

Thank you so much!!
Reply With Quote
Reply

Tags
pdf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:57 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.