Skip to content

PDF files generated by Reckon Hosted contain JavaScript code which attempts to automatically force the PDF client to print. This attempts to remove this behaviour by removing the offending JavaScript code.

License

Notifications You must be signed in to change notification settings

andygock/pdf-clean-up

Repository files navigation

PDF Clean Up

Removes JavaScript print commands from a PDF file.

PDF files generated by Reckon Hosted contain the following compressed JavaScript object which attempts to automatically force the PDF client to open a print dialog.

this.print({bUI: false, bSilent: true, bShrinkToFit: true});

This is a drag and drop web app which attempts to remove this behaviour, by removing this JavaScript code.

Demo

https://pdf-clean-up.gock.net/

Developers

Install pnpm

npm install -g pnpm

Install dependencies

pnpm install

Start development server. Navigate to localhost:8080

pnpm dev

Build for production into public/. Bundled files end up in public/build/

pnpm build

If required, use the following Netlify build command

pnpm build || ( npm install pnpm && pnpm build )

About

PDF files generated by Reckon Hosted contain JavaScript code which attempts to automatically force the PDF client to print. This attempts to remove this behaviour by removing the offending JavaScript code.

Topics

Resources

License

Stars

Watchers

Forks