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. Adding missing header information in tiff files

Adding missing header information in tiff files

Scheduled Pinned Locked Moved C#
csharphelpquestion
3 Posts 3 Posters 1 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

    I have a requirement to convert tiff files to pdf. But the problem is, for some tiff files, the header information is missing. If I opened this tiff files using IrfanView and save it again(I mean overwrite the file in the same location), the header information is automatically added. Is there any way which I can open those tiff files and save it again (as I done manually using Irfanview) programmatically using C#? Please provide any solution. Thanks meeram395.

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

    P R 2 Replies Last reply
    0
    • M meeram395

      I have a requirement to convert tiff files to pdf. But the problem is, for some tiff files, the header information is missing. If I opened this tiff files using IrfanView and save it again(I mean overwrite the file in the same location), the header information is automatically added. Is there any way which I can open those tiff files and save it again (as I done manually using Irfanview) programmatically using C#? Please provide any solution. Thanks meeram395.

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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      There's a fairly detailed explanation here[^] on writing out a TIFF file.

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

      1 Reply Last reply
      0
      • M meeram395

        I have a requirement to convert tiff files to pdf. But the problem is, for some tiff files, the header information is missing. If I opened this tiff files using IrfanView and save it again(I mean overwrite the file in the same location), the header information is automatically added. Is there any way which I can open those tiff files and save it again (as I done manually using Irfanview) programmatically using C#? Please provide any solution. Thanks meeram395.

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

        R Offline
        R Offline
        Ravi Sant
        wrote on last edited by
        #3

        We have a good article on CP about this[^]

        // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫

        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