Error: Bad parameter when deleting pages from a PDF

Post Reply
prepressman_ntsf
Member
Posts: 35
Joined: Thu Apr 10, 2025 5:12 pm

Error: Bad parameter when deleting pages from a PDF

Post by prepressman_ntsf »

Hello,

I have a rather lengthy action list that performs a number of actions that results in the error message "bad parameter" when finished. Because
of this at times I am unable to save the file, but the file is essentially corrupt and useable. A workaround is to create a new blank page from acrobat and copy that page over.

However, I would like to rectify the issue and perfect this action list so that I can then create a Quick Run from it.

From my research the "bad parameter" issue is from when you:

...try to delete a page from a PDF, you see the error message “Bad Parameter.” The same error message may also occur when you try to insert or add a page to the PDF. The “Bad Parameter” error occurs when Acrobat finds some problem with the underlying structure of the tags in the PDF file.

This info is from https://helpx.adobe.com/acrobat/kb/bad- ... robat.html

You can also see the message I get after the action list is completed:

1_Error-message-after-action.JPG
1_Error-message-after-action.JPG (91.12 KiB) Viewed 351 times

I have included in the Action List to remove all metadata because I thought this might help, but it does not.

The intention behind this Action List is to impose a two-page file for a 6 3/4 Remittance Envelope to be print-ready for plating. It inverts the page positions, then changes the page box of the first page to be oblong, cuts and pastes the content from the second page onto the oblong first page, then deletes the second page.

Here is a link to the PDF and the Action List:
https://www.dropbox.com/scl/fo/16qc4mvm ... ut0on&dl=0
MURNMO
Newbie
Posts: 18
Joined: Sat Apr 13, 2024 11:27 am

Re: Error: Bad parameter when deleting pages from a PDF

Post by MURNMO »

Cut one into two pieces
Run once in order.

20260327_083930.png
20260327_083930.png (48.97 KiB) Viewed 133 times
20260327_083936.png
20260327_083936.png (30.25 KiB) Viewed 133 times
Last edited by MURNMO on Fri Mar 27, 2026 12:45 am, edited 4 times in total.
prepressman_ntsf
Member
Posts: 35
Joined: Thu Apr 10, 2025 5:12 pm

Re: Error: Bad parameter when deleting pages from a PDF

Post by prepressman_ntsf »

Hi Murnmo,

Thanks for looking into this.

While what you've done with the changes you made eliminates the error for "Bad parameter," it still leaves behind an empty page.

It results in having two identical oblong pages, the second one blank.

Is there a method by which to automate the removal of that second page, or will this always result in a "bad parameter error" ?
Last edited by prepressman_ntsf on Wed Mar 25, 2026 7:03 pm, edited 1 time in total.
prepressman_ntsf
Member
Posts: 35
Joined: Thu Apr 10, 2025 5:12 pm

Re: Error: Bad parameter when deleting pages from a PDF

Post by prepressman_ntsf »

Hi Murnmo,

If I delete the section that you redid, "Remove Empty Pages," which has Select last page and Remove Selection, the result is the same as when those actions aren't there. That is to say, there is still a blank page. These actions do not remove the blank second page as intended.

So I do not think this has any effect, from what I can see.
Post Reply