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. Converting Multipage Tiff files into PDF files

Converting Multipage Tiff files into PDF files

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 2 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.
  • M Offline
    M Offline
    meeram395
    wrote on last edited by
    #1

    Is there anyway which we can convert the multi page tiff files into pdf format in C#? I googled for quite sometime. Majority of the code uses a third party s/w which will be licensed for commercial use. Is there any free s/w that can be used in C# to convert the same? Or any open source tool for the same? Thanks

    Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

    K 1 Reply Last reply
    0
    • M meeram395

      Is there anyway which we can convert the multi page tiff files into pdf format in C#? I googled for quite sometime. Majority of the code uses a third party s/w which will be licensed for commercial use. Is there any free s/w that can be used in C# to convert the same? Or any open source tool for the same? Thanks

      Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

      K Offline
      K Offline
      Kraeven
      wrote on last edited by
      #2

      I would suggest using [ItextSharp]. This open source on itext (java) based library, will provide you with the possibility to create a new pdf based on whatever images you want. Example to get you started [Itext-convert-tiff-to-PDF] Another thing you can use is ghostscript, but I think this can just be used from the commandline... Kraeven

      M 1 Reply Last reply
      0
      • K Kraeven

        I would suggest using [ItextSharp]. This open source on itext (java) based library, will provide you with the possibility to create a new pdf based on whatever images you want. Example to get you started [Itext-convert-tiff-to-PDF] Another thing you can use is ghostscript, but I think this can just be used from the commandline... Kraeven

        M Offline
        M Offline
        meeram395
        wrote on last edited by
        #3

        Thank you for this. One of my java developer friend has already examined this. Some of the files are able to convert, but some are end up with error message saying that 'Byte array not a valid JPEG file'. One of our senior developer suggested that it may be because of JPEG-2000 issue, because of that some of the tiff files are not able to convert to PDF. However, I am able to view all the tiff files without any issues using FastStone Image viewer,converting to PDF at one short. But this will be a licensed one for commercial purposes. I want to know if there are any free versions or is it possible to achieve this somehow in dotnet. Thanks in advance meeram395.

        Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

        K 1 Reply Last reply
        0
        • M meeram395

          Thank you for this. One of my java developer friend has already examined this. Some of the files are able to convert, but some are end up with error message saying that 'Byte array not a valid JPEG file'. One of our senior developer suggested that it may be because of JPEG-2000 issue, because of that some of the tiff files are not able to convert to PDF. However, I am able to view all the tiff files without any issues using FastStone Image viewer,converting to PDF at one short. But this will be a licensed one for commercial purposes. I want to know if there are any free versions or is it possible to achieve this somehow in dotnet. Thanks in advance meeram395.

          Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

          K Offline
          K Offline
          Kraeven
          wrote on last edited by
          #4

          A solution could be to convert these to a png file before converting to PDF. [http://www.java2s.com/Tutorial/VB/0300__2D-Graphics/Convertjpegtopng.htm] Another open source library that has similar possibilities is PDFSharp[^] Hope this helps! Kraeven

          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