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. pdf file creation

pdf file creation

Scheduled Pinned Locked Moved C#
csharphelp
5 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.
  • P Offline
    P Offline
    PAVITHRA DWARAKANATHAN
    wrote on last edited by
    #1

    I have to create PDF file in c#. The constrain is that I should not use assemblies (Ex. pdfSharp, itextSharp). The PDF file should be created by using StreamWriter class. If anyone knows the answer, please help me.

    OriginalGriffO P P P 4 Replies Last reply
    0
    • P PAVITHRA DWARAKANATHAN

      I have to create PDF file in c#. The constrain is that I should not use assemblies (Ex. pdfSharp, itextSharp). The PDF file should be created by using StreamWriter class. If anyone knows the answer, please help me.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      This is not a trivial project in any way - that's why you get libraries such as pdfSharp. So if you can't use them, then you will have to write your own, or use a PDF printer driver (google will find you those) Writing your own is a big job - so start here: https://en.wikipedia.org/wiki/Portable_Document_Format[^] and set aside probably a few months to get it right. I'd recommend installing a number of PDF readers to check it with as you go along - you can't rely on just one to have not made the same mistakes you probably will! :laugh:

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • P PAVITHRA DWARAKANATHAN

        I have to create PDF file in c#. The constrain is that I should not use assemblies (Ex. pdfSharp, itextSharp). The PDF file should be created by using StreamWriter class. If anyone knows the answer, please help me.

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

        Who gave you this constraint? What does the problem say, exactly? The reason I ask this is that writing a PDF is a complex task based on an understanding of the PDF file format which is huge. Even if you choose to target an early version of the format, it's still a big thing you need to create.

        1 Reply Last reply
        0
        • P PAVITHRA DWARAKANATHAN

          I have to create PDF file in c#. The constrain is that I should not use assemblies (Ex. pdfSharp, itextSharp). The PDF file should be created by using StreamWriter class. If anyone knows the answer, please help me.

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Member 11585846 wrote:

          The constrain is that I should not use assemblies (Ex. pdfSharp, itextSharp)

          Why not? This sounds like homework ...

          "I've seen more information on a frickin' sticky note!" - Dave Kreskowiak

          1 Reply Last reply
          0
          • P PAVITHRA DWARAKANATHAN

            I have to create PDF file in c#. The constrain is that I should not use assemblies (Ex. pdfSharp, itextSharp). The PDF file should be created by using StreamWriter class. If anyone knows the answer, please help me.

            P Offline
            P Offline
            PAVITHRA DWARAKANATHAN
            wrote on last edited by
            #5

            I have created PDF without using those libraries. I have finished it in 5 days.... Thanks for your comments. :)

            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