Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:55:30+00:00 2026-06-10T04:55:30+00:00

I tried to convert a html page with dynamic values in it’s totality to

  • 0

I tried to convert a html page with dynamic values in it’s totality to pdf but i can’t. I saw some api like jspdf but that doesn’t suit my needs. Can anybody recommend a Javascript or jQuery library that fits this purpose?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:55:31+00:00Added an answer on June 10, 2026 at 4:55 am

    Here’s a little snippet which works locally – you can change to suitable your host set up:

    URL url = new File("test.html").toURI().toURL();
    WebClient webClient = new WebClient(); 
    HtmlPage page = webClient.getPage(url);
    
    OutputStream os = null;
    try{
       os = new FileOutputStream("test.pdf");
    
       ITextRenderer renderer = new ITextRenderer();
       renderer.setDocument(page,url.toString());
       renderer.layout();
       renderer.createPDF(os);
    } finally{
       if(os != null) os.close();
    }
    

    Alternatively, here’s the link to jsPDF: http://code.google.com/p/jspdf

    Here’s a useful example using jsPDF:

    var doc = new jsPDF();
    doc.text(20, 20, 'Hello world!');
    doc.text(20, 30, 'This is client-side Javascript, pumping out a PDF.');
    doc.addPage();
    doc.text(20, 20, 'Do you like that?');
    
    // Output as Data URI
    doc.output('datauri');
    

    More information can be found here: http://snapshotmedia.co.uk/blog/jspdf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to convert some pre-existing html/JavaScript files to Flex. I tried making
I am trying to convert a html page to pdf using command-line convertor WKHTMLTOPDF.
I m using Dompdf to convert Html Page to PDF. As client's requirement pdf
I have been trying to convert an html page to PDF with out any
When I tried to convert something like 0.1 (from user in textbox), My value
I've tried to convert bitrate mode from VBR to CBR with FFMPEG library,but bitrate
I am doing some exercises and tried to convert a simple class into a
I tried many things but I always get cannot convert string to membershipuser from
I would like to convert a TBitMap to a PBitMap in KOL. I tried
I want to convert a HTML page into MS word. I want to know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.