You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run pdf-lib in a node.js environment, together with minimist to pass arguments.
I pass a series of files to merge in using an --a parameter, and the corresponding bookmark/outline name for the first page of each of the PDFs that are being combined into the merged PDF, under the --ab parameter.
So I would call the pdf-lib from the command line as follows:-
I have tried creating the outlines/bookmarks using the following code, but all that happens is that two outlines/bookmarks are added and they both are named Document 1. Can you let me know where I have gone wrong?
I run pdf-lib in a node.js environment, together with minimist to pass arguments.
I pass a series of files to merge in using an --a parameter, and the corresponding bookmark/outline name for the first page of each of the PDFs that are being combined into the merged PDF, under the --ab parameter.
So I would call the pdf-lib from the command line as follows:-
node main.js --a 1.pdf --a 2.pdf --a 3.pdf --a 4.pdf --ab "Document 1" --ab "Document 2" --ab "Document 3" --ab "Document 4"
I have tried creating the outlines/bookmarks using the following code, but all that happens is that two outlines/bookmarks are added and they both are named Document 1. Can you let me know where I have gone wrong?
I took this code from a comment in Issue #127.
The text was updated successfully, but these errors were encountered: