Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

343
Views
python pdfkit token authentication

I need to convert a javascript intensive webpage given an URL like domain.com?client_id=test_client&token=ggvv68566fgjj into pdf, if I open the URL into browser it open rights away but if using pdfkit code-

import pdfkit
url=domain.com?client_id=test_client&token=ggvv68566fgjj
pdfkit.from_url(url, 'out.pdf', options = {'javascript-delay':'9000'})

does fetch the partial page because it can not authenticate.

As it is a wrapper of wkhtmltopdf I tried these on terminal

wkhtmltopdf  --custom-header "Authentication" "Token ggvv68566fgjj" --custom-header-propagation --javascript-delay 5000 --debug-javascript "domain.com?client_id=test_client&token=ggvv68566fgjj" output.pdf

Access header authentication error is raised and pdf does not contain all data as API authentication failed.

Any suggestions and advice would be of great help.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!