Generate PDF using code from members page

Hello Guys,

Does anyone have an idea how to generate pdf from members page? We have a contract that is signed by the member and we want to have the exact copy of it as pdf.

What I have tried:

  1. Used PDFGenerator API : But there we can’t customize the fonts of text. Since its a contract signed by user, we want it to be exactly the same copy. So without font customisation, it look like a different one.

  2. Used some npm modules which gets the website url and convert it to pdf using that url sent to the pdf converting service. But issue here is that since its a member page, we always get the password /login page pdf

  3. Used PDFKIT npm module: Here I am getting some return value as arrays from backend code of pdf kit but I don’t know how to convert it to real pdf.

  4. I reffered old posts in forum but all posts were either closed without any solutions or doesn’t have any valid solutions that work for me.

Does anyone have any idea how to create pdf of site content(the data is also available in the database and also as a webpage in members area) from the members page.

Thanks

Hi, yes I am doing this but the way is so tricky. But free of charge!
First, I created script on gsscript for printing the document from the google sheets. Next, I am creating the speadsheets using the google api from template with all neccesary decorations, pictures etc. And finally I am calling printing script again by the google api. As a result I am receiving the link on the google drive with pdf. Done!
There are some hidden limitations - google does not give you an ability to execute too much requests in particular period of time so conversion might be failed sometimes due to the google. But it is ok for my case for now.

Hi Alexey
Thanks for your reply. But with ur method my members wont be able to easily access the pdf file as it will be saved in my google drive account. I want the member to click the download button and directly download the pdf it to their pc without much delay. I am looking for this kind of solution that works for member pages.

Bumping this question up since it has no answers and I have not found the npm modules to be a suitable solution (10 steps for low-quality results)…

Like @thrishtilabs , I would like the user to click on a button and export his member page (a sort of dashboard with hyperlinks) as a pdf.

The dream would be to be able to export a specific element, a simple line of code would look like:

$w( “#dashboard” ).pdfExport ();

I actually found a very decent solution!!
-Have a button linked to a lightbox with a picture or video showing how to print a page as a pdf
-precise the optimal parameters (no margins, 60% zoom, landscape orientation, background graphics on…) and voilà!

I get a decent pdf with… all my hyperlinks embedded!
(example attached below)

I add below a video to explain how to proceed. I will embed a compressed version of it in the lightbox shown when the user clicks “export”.

Hello everyone

The APIs named in the old posts are now all paid (no free account available).

I am testing the FREE API from pdflayer.com directly from the web option found on the Dashboard page.

The API with my key works perfectly if I point to wikipedia, google or any other website.

But it fails if I point to MY websites, hosted on Wix, with 404 error.

Will it be latency or some blockage from WIX?
Has anyone successfully tested the pdflayer API with wix sites?

Regards
Juan Pablo