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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:42:01+00:00 2026-05-31T06:42:01+00:00

This question is related to another one I’ve posted recently: Check printing with Java/JSP

  • 0

This question is related to another one I’ve posted recently: Check printing with Java/JSP

We’re looking for alternatives to how we currently print checks in a Java web application via an applet. It seems the consensus is to use PDF for printing and that itext offers the ability to do so with Java.

However, it’s important in our particular case that the checks are “print-only” – the user should not have any ability in the application to save the check (I know a savvy user could do a PrintScreen but we want to cover our rears and make no native functionality in the app to save checks).

I haven’t been successful in browsing the web to find out if it’s possible to create a PDF with itext in this manner. I have seen posts on restricting permissions in a PDF but what I’m really looking for is a way to disable the ability to save a PDF locally using itext.

Does this functionality exist? If so, could you point me to documentation/code samples on it?

  • 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-05-31T06:42:02+00:00Added an answer on May 31, 2026 at 6:42 am

    I’m presuming that you’re serving this PDF and wishing to print it from within a web application / web site where no out of the ordinary client side plug-ins are installed.

    If printing the PDF using conventional means (e.g. Adobe Reader), the PDF MUST be downloaded to the browser’s cache to be opened and printed. There is no way around that.

    Now you can probably prevent the average Joe from saving the PDF locally via the following technique, but any savvy user will be able to inspect your HTML’s source and download the PDF directly.

    1. Output your PDF in iText such that when the PDF is opened, a print action automatically occurs
    2. Put an invisible IFRAME on your HTML page which loads this PDF, but is not visible in the browser to your user

    When the user loads your HTML page, the PDF will be loaded in the IFRAME and sent to the users printer (presuming that Adobe Reader is installed in the browser). Yes, the PDF will end up in the browser cache, but the user would have to be savvy enough to both recognize this and then hunt it down in their browser’s cache.

    If this is not acceptable, you’re going to have to look at converting the PDF to another file type (e.g. pages are rendered to images displayed in the browser or perhaps a Flash / Java object that sends each page in the document to the printer directly)

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

Sidebar

Related Questions

Another question related to this one . I have a List<SortableObjects> that is the
This question is related to another question I just posted . I'm prepping for
This is related to another Delphi-version question but still different; I'm looking for a
(This question is related to another one , but different enough that I think
This is a question related to another one I asked that was specific to
This question is related to another one, Emacs :TODO indicator at left side .
This question is related to another question which I asked yesterday! List all links
This question is related to another question I asked Basically, I have 2 horizontally
This question is kind of related to another question but I have a specific
This is related to another open question of mine . While there aren't any

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.