Using C# to create a PDF

  • Thread starter Thread starter Kenneth H. Brannigan
  • Start date Start date
K

Kenneth H. Brannigan

Hello,
I was wondering if anyone could point me to a source that gives the
standards for creating PDF documents. I do not want to use a third party
product at all I want my C# object to create the PDF 100%.
Thanks,
Ken
 
try this:

FileStream ReadPdf = new FileStream("PDFFileName", FileMode.Open);
long FileSize;
FileSize = ReadPdf.Length;
byte[] Buffer = new byte[(int)FileSize];
ReadPdf.Read(Buffer, 0, (int)ReadPdf.Length);
ReadPdf.Close();


FileStream CreatePdf = new FileStream("NewPDFFileName",
FileMode.Create);
CreatePdf.Write(Buffer,0,Buffer.Length);
CreatePdf.Close();
 
Kenneth H. Brannigan said:
Hello,
I was wondering if anyone could point me to a source that gives the
standards for creating PDF documents. I do not want to use a third party
product at all I want my C# object to create the PDF 100%.
Thanks,
Ken

You could go straight to the source

PDF Reference

The PDF specification was first published when Acrobat products were
first introduced in 1993. Since then, updated versions of the PDF Reference
have been made available from Adobe via the Web. A significant number of
third-party developers and systems integrators offer customize enhancements
and extensions to Adobe's core family of products. Adobe publishes the PDF
specification to encourage the development of such third-party applications.
The PDF Reference provides a description of the PDF file format and is
intended primarily for application developers wishing to develop PDF
producer applications that create PDF files directly. It also contains
information enabling developers to write PDF consumer applications that read
existing PDF files and interpret or modify their contents.


PDF Reference, Fourth Edition, Version 1.5

http://partners.adobe.com/asn/tech/pdf/specifications.jsp
 
Yes, but the original poster asked for 100% free and source code, the link
below requires $$$.

Thanks,
Shawn
 
Back
Top