Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Lower resolution of .PDF

Lower resolution of .PDF

Scheduled Pinned Locked Moved C#
questioncsharpc++help
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve van Niman
    wrote on last edited by
    #1

    We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve

    D A B 3 Replies Last reply
    0
    • S Steve van Niman

      We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You'd have to recompose the entire document in order to do that. Any "oversized" pictures would need to be resampled to a lower resolution and put back into the document to reduce it's size. You might just want to compose two documents instead. One with reduced size pictures and another with "normal". If they want the "good" one, you can provide a link to the second download.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      1 Reply Last reply
      0
      • S Steve van Niman

        We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve

        A Offline
        A Offline
        Alan Balkany
        wrote on last edited by
        #3

        This: http://www.websupergoo.com/abcpdf-5.htm[^] will let you do anything you want to PDFs through C#. You can also change the compression scheme used, which can speed transmission up considerably.

        1 Reply Last reply
        0
        • S Steve van Niman

          We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve

          B Offline
          B Offline
          BobJanova
          wrote on last edited by
          #4

          Are you accidentally including text as images, instead of text? That is usually why PDFs get huge. For included images (or other large resources e.g. embedded fonts) within a document, make sure you're using a sensible compression scheme (JPEG or gzip). Complex page streams should also be compressed, but simple ones shouldn't (it makes the file bigger).

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups