Marking pages in pdf using nodejs . Pdf is coming from mongodb - javascript

How to mark or highlight pages in pdf using nodejs ?
How to mark or highlight pages in pdf using nodejs ? my pdf is coming from a database in mongodb . i want to mark some pages in the pdf. its a 447 page pdf and i want to mark pages 40 to 80.

Related

How to download multiple zipped pdf in one click from JSON in ReactJS

JSON is coming from backend. and I have a list in frontend and a button for generate invoice.
I have to generate invoice for each row of table.
All invoice should be zip and download directly in one click.
I have try pdfjs and html2canvas but I don't understand how to download pdf without showing it in frontend.
I just need to download directly without showing it in frontend.
Thanks

How to Auto Upload a json file to my github Website

There is a program in my company that generates a JSON file. I created a website (that will be live on github pages) using java script and html that displays the information from this JSON. Now I want others in my company to generate individual JSON files and be able to upload them to this website by clicking a single button. I'm thinking the button they click would generate the JSON (let's say it saves automatically as c:data.json), programmatically open the github pages website and then programmatically upload c:data.json. I do not want the json file to be stored on the website, just uploaded for one time use.
I have done a couple google searches and can only seem to find stuff on how to upload a json file in your code which I am already doing locally. I need a local file to programmatically upload, in order to be used in a github pages website. I'm new to web dev and any help is appreciated :)
OS: Windows 10
developed using: node.js, javascript, html, json, github pages.

printing multiple PDF files using print.js

I am building a list of PDFs from server side in HTML. In the list I'd like to include a a print button . Is there some way to directly open the Print dialog for the PDF without the user seeing the PDF or opening a PDF viewer? Or Can I use print.Js Library in this case

Convert URL to PDF from the client-end

I want to save a web URL as a PDF. For example we can File->Save As-> PDF on the browser to save a webpage as a PDF.
But, in my case when the User provides a URL, I want to convert that URL to a PDF pragmatically.
There are many libraries and SO post on extracting the URL from the backend. According to my requirement I want the PDF to be generated on the Client-Side itself. So the user downloads exactly what he sees.
These are some of the links I visited:
Export HTML page to PDF on user click using JavaScript
Generate pdf from HTML in div using Javascript
Can someone help me to convert a webpage (given as a URL) to PDF format ?

How do I implement PDF/ PPT viewing facilty in my website?

Are there any open source/free tools using which I can implement ppt/ pdf viewing facility in my website ?
The documents are stored on my own database server & external links as well.
Search for "online pdf editor" and several companies will show up. Some of them sell PDF libraries to do what you want.
A roll-it-yourself solution would be to start with Ghostscript for PDFs, and Office for PPTs, and use them to emit jpg or png files.

Categories

Resources