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

batch printing PDFs different amount of times

Participant ,
Jul 28, 2022 Jul 28, 2022

Copy link to clipboard

Copied

Is there a way to do a batch print where you can specify how often the respective pdfs have to be printed.  like print the first pdf 100 times, the second 80 and the third only 5 times.

TOPICS
Create PDFs , Edit and convert PDFs , How to , Print and prepress

Views

610

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 ,
Jul 28, 2022 Jul 28, 2022

Copy link to clipboard

Copied

You can do it by just having the Action open the Print dialog, and then specifying in it the number of copies for each file. You can do it by executing this JavaScript code:

this.print();

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
Participant ,
Jul 28, 2022 Jul 28, 2022

Copy link to clipboard

Copied

is it possible to automate the process by having the number already in the file name? for example such as 50x_abc.pdf. Basically, you set the print setting once and after this every file is printed.

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 ,
Jul 28, 2022 Jul 28, 2022

Copy link to clipboard

Copied

Yes, that is possible. If you use that pattern for the file name then you can do it like this:

 

var pp = this.getPrintParams();
pp.printerName = "Enter printer name here";
pp.interactive = pp.constants.interactionLevel.automatic;
pp.NumCopies = Number(this.documentFileName.split("_")[0].replace("x", ""));
this.print(pp);

 

This code will print the files automatically. The user will be able to cancel out of the operation, though, in case of any problems.

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
Participant ,
Jul 29, 2022 Jul 29, 2022

Copy link to clipboard

Copied

Wow thank you! You are a greate person.

 

For me the action would be perfekt if I coulduse it to specify in the Print Menü how i want it to bei printed, such as one-sided grayscale. By Default our printers so everything in color and Duplex and we don't need that very offen.

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 ,
Jul 29, 2022 Jul 29, 2022

Copy link to clipboard

Copied

Try adding these lines before the print command:

 

pp.colorProfile = "Gray Gamma 2.2";
pp.DuplexType = pp.constants.duplexTypes.Simplex;

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
Participant ,
Jul 29, 2022 Jul 29, 2022

Copy link to clipboard

Copied

Oh Yeah the grayscale one of worked fine, but i think the duplex issue is within the print driver. Do you have any workaroud for 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 ,
Jul 29, 2022 Jul 29, 2022

Copy link to clipboard

Copied

LATEST

No, sorry.

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