Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how would i go about using an image....

Status
Not open for further replies.

chaosinc

Technical User
Sep 11, 2002
155
US
o.k. here is my dillema. i need to make a ton of pdfs. 70,000+. how would i use the same graphics file for all 70,000+ pdf's? i need to have each pdf reference 3 or 4 of the same graphics in every pdf. the problem is that if i incorporate these in every pdf i will need somewhere in the neighborhood of 400 gigs worth of cdrs. is there a way to say, have 1 copy of these graphics on each disk and have the individual pdfs reference them without the graphics being in each pdf?
hope that wasn't too confusing knoweldge is power, spread the power
 
Yes.

You need to use the buttonImportIcon method, and your image file must be converted to a pdf.

Create icon only buttons where you require the images to be in your doc, but don't specify an icon.

Lets say you create a button called "picture" and you want to populate it with an icon called icon1.pdf from a cd on drive d: in folder called "icons".

Set the following document javascript:

Code:
var pic = this.getField("picture");
pic.buttonImportIcon("/d/icons/icon1.pdf", 0);

It should populate the specified button with your picture - obviously for more pictures just repeat the script naming each field and source icon as required.

Hope this helps.. Ahhhhh, I see you have a machine that goes Bing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top