Demo: Adding header with pdf-lib
This code uses pdf-lib to add a header to the first page of a pdf file.
Two sample pdf files provided. This code works for input-working.pdf
, but NOT for input-problematic.pdf
npm install
npm start
The paths of the generated output files will be printed in the console