These commands - give error "ERROR A04" and do not create a PDF file :
%PDFIN% multibackground %PDFFILE2% output %PDFOUT%
%PDFIN% multistamp %PDFFILE2% output %PDFOUT%
These commands are executed successfully and without errors:
%PDFIN% background %PDFFILE2% output %PDFOUT%
%PDFIN% stamp %PDFFILE2% output %PDFOUT%
You discovered a long-standing latent problem with the error-checking of the user-edited command template string in the 'Advanced' tool which caused valid 'multibackground' and 'multistamp' operations to be rejected (Error A04: No PDFtk operation found in template). The fix is simple and will be corrected in the next release.
It is not necessary to resort to using the 'Advanced' tool to perform multibackground or multistamp operations. The Stamp and Background options on the 'Mark Pages' tab automatically execute multibackground or multistamp as explained on page 11 of the PDFtk Builder Users Guide. If the Background/Stamp PDF File (file 2) has multiple pages, those options use the 'multi' form of the PDFtk 'stamp' or ' background' operations. If the Background/Stamp PDF file has only one page, the single-page 'background' or 'stamp' operations are used. I tried the stamp option on the 'Mark Pages" tab with your 3-page source and stamp PDF files and it produced the correct output.
I don't recall receiving any notification from SourceForge that you had posted a discussion item back on 9 Mar 2025. I noticed it last evening (30 Apr 2025) when I visited this site to update some supporting material to reflect the release of PDFtk Builder v4.1.7 on PortableApps.com on 28 Apr 2025.
Last edit: David King 2025-05-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
Please help me get the "multibackground" and "multistamp" commands to work successfully.
"PdftkBuilder.exe" v4.1.7
Tool Sets > Set 4 > Advanced > T4
These commands - give error "ERROR A04" and do not create a PDF file :
%PDFIN% multibackground %PDFFILE2% output %PDFOUT%
%PDFIN% multistamp %PDFFILE2% output %PDFOUT%
These commands are executed successfully and without errors:
%PDFIN% background %PDFFILE2% output %PDFOUT%
%PDFIN% stamp %PDFFILE2% output %PDFOUT%
I attach the files:
Video recording of my actions:
PdftkBuilder - multibackground - ERROR A04.mp4 (3.2 MB)
https://mega.nz/file/2xZkUa4a#fBeSOBFmGZhLAFSX4YYWsbeQYwsnGpcHQdJyYUn3svo
Source PDF Document:
Text.pdf (26.1 MB)
https://mega.nz/file/O5hGUAwb#az183-A-vv8ZJ6h3Mnw2NkTMIJrx5tMmqcQR76FxLr4
Secondary Input File :
Graphics.pdf (30.1 MB)
https://mega.nz/file/b0o1lSiJ#XQNgpqNLJBQtwZJaCWiu-xme9QXYEE2Q3_FQetPoGRw
You discovered a long-standing latent problem with the error-checking of the user-edited command template string in the 'Advanced' tool which caused valid 'multibackground' and 'multistamp' operations to be rejected (Error A04: No PDFtk operation found in template). The fix is simple and will be corrected in the next release.
It is not necessary to resort to using the 'Advanced' tool to perform multibackground or multistamp operations. The Stamp and Background options on the 'Mark Pages' tab automatically execute multibackground or multistamp as explained on page 11 of the PDFtk Builder Users Guide. If the Background/Stamp PDF File (file 2) has multiple pages, those options use the 'multi' form of the PDFtk 'stamp' or ' background' operations. If the Background/Stamp PDF file has only one page, the single-page 'background' or 'stamp' operations are used. I tried the stamp option on the 'Mark Pages" tab with your 3-page source and stamp PDF files and it produced the correct output.
I don't recall receiving any notification from SourceForge that you had posted a discussion item back on 9 Mar 2025. I noticed it last evening (30 Apr 2025) when I visited this site to update some supporting material to reflect the release of PDFtk Builder v4.1.7 on PortableApps.com on 28 Apr 2025.
Last edit: David King 2025-05-02
OK.
Thanks for the answer.