• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Auto Populate with Text & Images

New Here ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

Hi there,

 

I am new to this community and I am not too sure if this is where I post this question. 

 

I  was able to create text deliminated file to auto populate and save PDF  file with text.  I am wanting to auto populate the same pdf to include an image.  I thought I would be able to reference the text delimnated file with the location of the image but this did not work.  Is there a way to auto populate with an image? 

 

Any infomation would be helpful.  Thank you.

TOPICS
Create PDFs , JavaScript , PDF forms

Views

73

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

this.getField("ButtonFieldName").buttonImportIcon({cPath: "the path to the file including the file extension})

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

Hi there,

 

Thank you for the quick response. 

 

The information you provided worked.  I was wondering if there is a way to reference a text deliminated file that would store a link to an image? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

You could make a field called, for example, imagePath.  If all the paths are the same you would only put the file name with the file extension in the text file column imagePath (example:  image1.png) and hard code the path to that folder:

this.getField("ButtonFieldName").buttonImportIcon("/c/Documents/Images/" +this.getField("imagePath").value);

Run the script above after the import of a row of data.,

If the files are in different folders you would put the entire path in the imagePath column:

/c/Documents/Images/image1.png

Then run the import script as follows:

this.getField("ButtonFieldName").buttonImportIcon(this.getField("imagePath").value);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 31, 2024 Oct 31, 2024

Copy link to clipboard

Copied

LATEST

Hi there,

 

I wanted to let you know that the information you provided worked!  Thank you for your help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines