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 8813085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:45:22+00:00 2026-06-14T03:45:22+00:00

I am converting my XHTML pages, which are part of an application form filled

  • 0

I am converting my XHTML pages, which are part of an application form filled by the user, into PDF files and saving them on the remote server. I have 6 parts in the application form each part is one XHTML page.

Once user fills up to 4 parts , upon click of continue button in 4 part/page, I am generating the PDF and saving it to remote server. On 5th part/page I have show a “PrintPreview “ button. Once user clicks on it I have to get Saved PDF and open it in the PDF format.

I am able to read the PDF using InputStream but I don’t know how to Open it in the java. How Can I do that using Java?

  • 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-14T03:45:24+00:00Added an answer on June 14, 2026 at 3:45 am

    If you mean you have a Java applicaiton running that needs to display the PDF, then Java’s Desktop provides one solution. Your code would do this:

    1. get/download the pdf and save to a file:

      File myPdf = saveToFile(pdfStream);

    2. call desktop to display the PDF

      java.awt.Desktop.getDesktop().open(myPdf);

    Another option would be to launch a browser with a url to display the PDF. This can be done with the Desktop.browse(uri) method.

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

Sidebar

Related Questions

I've looked at jTidy for converting a snipped of malformed/real-world HTML into well-formed HTML/XHTML.
When converting a project (in which a template method of IComparable was used a
For converting a integer into an enum (out of a json file), I declared
Currently working with converting SQLException error messages into messages that are more useful for
I'm trying to convert an XHTML document that uses lots of tables into a
can anybody give sample program for converting xhtml doc to xml using jtidy in
I've been tasked with converting some text log files from a test reporting tool
I have designed a form which was working fine until about an hour ago.
Converting an existing Android application to a library is incredibly simple : All I
After converting my Web Site Project to a Web Application Project , some of

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.