Go Back   PTI Marketing Technologies User Community > Software-Related Talk > Getting Started > Tips & Tricks

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 24th, 2012, 11:34 AM
Andrew Christensen Andrew Christensen is offline
Forum n00b
 
Join Date: Apr 2012
Posts: 5
Default Import jpg.

Hello, my name is Andrew I am new to Fusionpro. My question is this, I am printing several hundred names for a convention, the customer wants "Name" "What School Graduated From" and a "Picture" of the attendee, I am okay with building the vdp for the text however I am new to adding a picture, can someone please advise me on how to accomplish this task. Thank you, Andrew.
Reply With Quote
  #2  
Old September 24th, 2012, 03:49 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,225
Default Re: Import jpg.

If you have the graphics locally on your machine, or they're accessible on your local network, the easiest thing is usually just to add them as resources to the job. From the menu in Acrobat, select FusionPro -> Data Definition -> Input Options, click Resources, then click "Add Multiple" and "Select Files", and browse to the graphics. You can multi-select in the file browser dialog by holding Ctrl on Windows or the Command (pretzel) key on Mac. Then the resources will be available to select in Graphic rules.
__________________
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 September 24th, 2012, 05:18 PM
Andrew Christensen Andrew Christensen is offline
Forum n00b
 
Join Date: Apr 2012
Posts: 5
Default Re: Import jpg.

Dan, thank you for your step by step instructions they seem to be getting me there, however I am not quite home as of yet, when the GUI asks me to "Enter a search path" what path is this referring me to, as well as the "Enter the image name of a default graphic"? I assume the graphic it is referring me to is the name of the graphic. Now once I get this all figured out I have one more question for you, when I put in the search path will this include all the pictures in the path? The pictures have a number (1 to 487) corresponding to the name field, the photo field is A the name filed is B. Thanks once again, Andrew.
Reply With Quote
  #4  
Old September 25th, 2012, 01:44 PM
Andrew Christensen Andrew Christensen is offline
Forum n00b
 
Join Date: Apr 2012
Posts: 5
Default Re: Import jpg.

Dan Korn, Duh I still am in need of help (just a poor Utah country boy) this is as far as I seem to be able to navigate, please advise. Attached is a screen shot of where I am. Thanks, Andrew
Reply With Quote
  #5  
Old September 25th, 2012, 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,225
Default Re: Import jpg.

Quote:
Originally Posted by Andrew Christensen View Post
Dan Korn, Duh I still am in need of help (just a poor Utah country boy) this is as far as I seem to be able to navigate, please advise. Attached is a screen shot of where I am. Thanks, Andrew
I don't see any screenshot attached. But I presume you're using the "Insert Picture Rule" template.
Quote:
Originally Posted by Andrew Christensen View Post
Dan, thank you for your step by step instructions they seem to be getting me there, however I am not quite home as of yet, when the GUI asks me to "Enter a search path" what path is this referring me to, as well as the "Enter the image name of a default graphic"? I assume the graphic it is referring me to is the name of the graphic. Now once I get this all figured out I have one more question for you, when I put in the search path will this include all the pictures in the path? The pictures have a number (1 to 487) corresponding to the name field, the photo field is A the name filed is B. Thanks once again, Andrew.
I don't understand what you mean by, "the photo field is A the name filed is B." What are "A" and "B"?

What would help me to help you would be a specific example of a name of a graphic file and the value of the data field you're trying to use to reference it.
__________________
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
  #6  
Old September 25th, 2012, 05:44 PM
Andrew Christensen Andrew Christensen is offline
Forum n00b
 
Join Date: Apr 2012
Posts: 5
Default Re: Import jpg.

Dan, almost there (wow this has been a struggle) sorry I have not been able to figure this out, I have had a lot on my mind as of this past few weeks it seems I am not able to keep focused due to some outside influences. Here is where I am getting a roadblock, when it asks for "Enter a search path" & "Enter the image name of a default graphic" what do I enter into these fields? I have tried the name of the picture files with no luck. Please advise.

Thank you,

Andrew Christensen
Reply With Quote
  #7  
Old September 25th, 2012, 06:18 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,225
Default Re: Import jpg.

Quote:
Originally Posted by Andrew Christensen View Post
Dan, almost there (wow this has been a struggle) sorry I have not been able to figure this out, I have had a lot on my mind as of this past few weeks it seems I am not able to keep focused due to some outside influences. Here is where I am getting a roadblock, when it asks for "Enter a search path" & "Enter the image name of a default graphic" what do I enter into these fields? I have tried the name of the picture files with no luck. Please advise.
I don't know the names of the files and folders on your machine, so I can't tell you what to enter in those two fields without knowing a bit more.

The search path is the full path to the folder containing the graphics, probably something like "C:\some folder name\some subfolder name" (without quotes), or maybe "\\server\share\folder", or if you're on Mac, something like "/Users/andrew/Pictures". The default graphic is the name of a file to use when no match is found to the field value, probably something like "YourFileName.jpg". Again, though, I can't just guess the folder and file names on your machine.

As I said before, if you can provide a specific example of the name of a graphic file and the name and a sample value of the data field you're trying to use to reference it, then I can come up with more specific suggestions. There's probably just a couple lines of JavaScript that will work fine, without needing all that other information in the template rule.
__________________
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)});

Last edited by Dan Korn; September 25th, 2012 at 06:19 PM.. Reason: typo
Reply With Quote
  #8  
Old September 26th, 2012, 09:27 AM
Andrew Christensen Andrew Christensen is offline
Forum n00b
 
Join Date: Apr 2012
Posts: 5
Default Re: Import jpg.

Dan, I have a Mac as my work station. The file is on my hard drive named "digital 10.5" in a folder called current jobs/ron digital stuff/mission reunion/photos/photo 1 through 179 with names attached to each photo. I have also added the photos in pictures places, specific name to one of the photos is photo 1 Stein Aanensen.jpg. I trust this is what is needed, please advise.

Thank you,

Andrew Christensen
Reply With Quote
  #9  
Old September 26th, 2012, 10:27 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 954
Default Re: Import jpg.

Andrew, are you photos named "photo 1 Stein Aanensen.jpg"? Or is photo 1 named "Stein Aanensen.jpg"? I think the second of the two options is a better naming convention but I think you could make either work using this code:

Code:
var path = "/jobs/ron digital stuff/mission reunion/photos/";
var name = Field("YOUR NAME FIELD HERE"); // replace with your name field

return CreateResource(path + name + ".jpg");
If you have your image named: "photo # Name.jpg" then it would help that photo 1 corresponded with record one, photo 2 corresponded with record 2, etc. For example: if Stein Aanensen's photo is titled: "photo 1 Stein Aanensen.jpg," then he should be the first record in the data file. If that's the case you could use this code:


Code:
var path = "/jobs/ron digital stuff/mission reunion/photos/";
var name = Field("YOUR NAME FIELD HERE"); // replace with your name field

return CreateResource(path + "photo " + CurrentRecordNumber() + " " + name + ".jpg");
Hope that helps.
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
Reply

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 04:45 PM.


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