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

Workaround needed for "Print" Action limitation in Action Wizard

Explorer ,
Oct 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

Hello,

 

I need a workaround for the "Print" Action limitation which does not allow me to "Specify settings". 

suemo22_4-1728309734450.png

Instead, when I click on the "Specify Settings", it says it will default to what my printer is set to:

suemo22_2-1728309734506.png

 

This is not helpful to me b/c I have over 100+ users who use this action wizard to process their files and I cannot tell them what setting to have. Plus, they would have to do this everytime which would be annoying. It would be great if the action wizard automatically sets the setting (File >Print and then select "Adobe PDF" for the Printers). This is the setting I would want it to resort to when a user uses my action wizard. Is there a work around for this? Note, I need it to save the pdf only in this manner: File >Print and then select "Adobe PDF" for the Printers. Can a javascript be written for this?

 

Thanks.

Sue

 

TOPICS
General troubleshooting , How to , JavaScript , PDF

Views

240

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 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

What is the purpose of processing PDF files and printing them as PDFs?  Your answer will help me provide a solution.  Instead of Print for the action use Execute JavaScript and then use the following script:

var pp=this.getPrintParams();
pp.printerName="Adobe PDF";

pp.interactive=pp.constants.interactionLevel.silent;
this.print(pp);

 

Make sure you have the following settings in your Adobe PDF printer:

PDFAutomationStation_0-1728320496329.png

 

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 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

This won't work as a silent process. You will be prompted to enter the file name for each file. There's no way around that.

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 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

Yes it works.  I tested it.  You have to set your Adobe Printer preferences to select a default folder for the output and uncheck "View Adobe PDF results".

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 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

What file name is used for each file?

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 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

Same as the originals.

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 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

Weird. It never used to work until now. I guess something changed in the recent version, then.

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
Explorer ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

Hello, 

 

For the javascript provided by PDF Automation Station, is there a way to make it so it saves to a particular folder such as "../Prepped/" instead of having users adust their printer settings as you suggested? I have a folder where all of the processing is happening and it would be really useful to have it just save to it.

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 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

When you are printing to PDF using the Adobe PDF printer, you are not saving, you are sending the document to the printer with some settings set out in the getPrintParams script.  The printer takes over and uses the setting preferences for those not laid out in the script.  You would have to adjust the printer settings to point to your folder under "Adobe Output Folder" in the screenshot I provided.  You can also make a copy of the Adobe PDF printer, name it something else, use that name in the script and only use that printer for processing this way.

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
Explorer ,
Oct 16, 2024 Oct 16, 2024

Copy link to clipboard

Copied

LATEST

Can you explain the last part of your suggestions  - "you can also make a copy of the Adobe PDF printer, name it something else, use that name in the script and only use that printer for processing this way" - by providing an example of how one would do this with the javascript in the action wizard or preset action in the action wizard? I am not following.

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
Explorer ,
Oct 07, 2024 Oct 07, 2024

Copy link to clipboard

Copied

Very good question. I thought it would be confusing if I explained why. I am finding that if I don't re-save the pdf's as in this manner: File >Print and then select "Adobe PDF" for the Printers before running them through my automatic labeling action wizard, the headers and footers get removed. The only way I found I could avoid this was to re-save them as pdf's  File >Print and then select "Adobe PDF" for the Printers. Hence, I thought the best thing to do is to always re-save all of my pdf's before runnign them through my labeler action wizard.

 

I will try the javascript and get back to you. Thank you.

 

Sue

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