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

I am trying to create multiple copies of a PDF document by printing to PDF

New Here ,
Dec 16, 2020 Dec 16, 2020

I have a 96 page pdf which I need to use to create 250 copies of each page, uncollated.

When printing to PDF i only get the correct amount of pages when i print them collated, when using uncollated i end up with the original 96 pages with no change

3.3K
Translate
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 ,
Dec 16, 2020 Dec 16, 2020

I've moved this from the Using the Community forum (which is the forum for issues using the forums) to the Acrobat forum so that proper help can be offered.

Translate
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 ,
Dec 16, 2020 Dec 16, 2020

Why not simply copy and paste it in Windows Explorer? Or use a simple DOS command to duplicate the file?

Printing it to a PDF is a very roundabout way of creating duplicates.

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

Hi, i need to create duplicates of each page inside the same file, uncollated. e.g. page: 1,1,1,2,2,2,3,3,3

Translate
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
LEGEND ,
Dec 16, 2020 Dec 16, 2020

Do you need Printed, Paper, copies or Digital copies of each individual page?

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

I need a digital file with pages uncollated in the same document

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

You do that manually, too. Copy all the pages, click and drag them (while holding Ctrl) in the Pages panel, and you'll get a copy. Repeat the process 8 times and you get 256 copies. Then delete the extra copies. Or it can be done with a script...

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

I was hoping to find a script as this is something i have to do often and it becomes very tedious, especially when other jobs may have 200 pages and need 1000 copies of each

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

I'm not sure it will be able to handle that, but it's worth a try... Run this code from the JS console:

 

var numDuplicates = 250;
for (var i=1; i<=numDuplicates; i++) {
	this.insertPages(this.numPages-1, this.path)
}
Translate
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 ,
Dec 17, 2020 Dec 17, 2020

This will insert all pages at the end of the document. After this you must reorder the pages.

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

Is there a way to do this but without the need to reorder them? Trying to save as much time as possible

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

Yes, you're right... To do it in an uncollated fashion will require a more complex script.

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

Actually, not that much more complex, although much slower... I highly doubt it will be able to create that many copies, to be honest, but give it a try:

 

var numDuplicates = 250;
for (var p=this.numPages-1; p>=0; p--) {
	for (var i=1; i<=numDuplicates; i++) {
		this.insertPages(p, this.path, p)
	}
}

 

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

Im Getting this error:

 

SyntaxError: syntax error
1:Console:Exec
undefined

 

(Sorry i'm a complete novice with scripts)

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

Did you select all the code before running it?

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

Yes, i did

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

Well, it's working fine for me... Did you make any changes to it before running it?

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

I made no changes, i ran in debugger and get the same error every time

Translate
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 ,
Dec 17, 2020 Dec 17, 2020
LATEST

Try putting it as the Mouse Up script of a button field in your file and then click it. Of course, it will create duplicates of that button, but it's just to test it out (plus you can remove all copies of the button via the Fields panel).

Translate
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 ,
Dec 17, 2020 Dec 17, 2020

With Javascript you can copy and insert pages.

Translate
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