We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When I try to concatenate PDFs in an Express application, the resulting PDF is empty:
const documents = new Map(); documents.set('A', 'input1.pdf') documents.set('B', 'input2.pdf') const input_obj = Object.fromEntries(documents); const cat_str = [ ... documents.keys()].join(' '); const output = 'output.pdf'; pdftk .input(input_obj) .cat(cat_str) .output(output) .then(buffer => { // Do stuff with the output buffer documents.set('output', output) res.json(Object.fromEntries(documents)) }) .catch(err => { // handle errors res.json(err) });
The equivalent pdftk command on the command line succeeds:
pdftk
pdftk A=input1.pdf B=input2.pdf cat A B output output.pdf
To Reproduce Steps to reproduce the behavior:
output.pdf
Expected behavior The generated file contains all input PDFs in the specified order.
Screenshots N/A
Desktop (please complete the following information):
Additional context N/A
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When I try to concatenate PDFs in an Express application, the resulting PDF is empty:
The equivalent
pdftk
command on the command line succeeds:To Reproduce
Steps to reproduce the behavior:
output.pdf
Expected behavior
The generated file contains all input PDFs in the specified order.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: