473,382 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Using C# to create a PDF

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
Nov 15 '05 #1
12 31824
I think c# hasn't any class to generate pdf, you have to use someone library

"Kenneth H. Brannigan" <kb***@hotmail.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #2
I think c# hasn't any class to generate pdf, you have to use someone library

"Kenneth H. Brannigan" <kb***@hotmail.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #3
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" <kb***@hotmail.com> wrote in message
news:#0**************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #4
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" <kb***@hotmail.com> wrote in message
news:#0**************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #5
Look for ReportNET on www.sourceforge.net (??
http://reportnet.sourceforge.net ??) and you'll even get the source code.
Thanks,
Shawn

"Kenneth H. Brannigan" <kb***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #6
Look for ReportNET on www.sourceforge.net (??
http://reportnet.sourceforge.net ??) and you'll even get the source code.
Thanks,
Shawn

"Kenneth H. Brannigan" <kb***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #7
Kenneth H. Brannigan wrote:
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


Also, have a look at iText (C# port) here: http://itextsharp.sourceforge.net/

--
chris
Nov 15 '05 #8

"Kenneth H. Brannigan" <kb***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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/p...ifications.jsp
Nov 15 '05 #9
or try http://www.xmlpdf.com/ibex.html which is a standards based solution.
XML, XSLT, XSL-FO, all that good stuff ...

"Shawn B." <le****@html.com> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
Look for ReportNET on www.sourceforge.net (??
http://reportnet.sourceforge.net ??) and you'll even get the source code.
Thanks,
Shawn

"Kenneth H. Brannigan" <kb***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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


Nov 15 '05 #10
Yes, but the original poster asked for 100% free and source code, the link
below requires $$$.

Thanks,
Shawn
"john farrow" <vi*******@xtra.co.nz> wrote in message
news:uY**************@tk2msftngp13.phx.gbl...
or try http://www.xmlpdf.com/ibex.html which is a standards based solution. XML, XSLT, XSL-FO, all that good stuff ...

"Shawn B." <le****@html.com> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
Look for ReportNET on www.sourceforge.net (??
http://reportnet.sourceforge.net ??) and you'll even get the source code.

Thanks,
Shawn

"Kenneth H. Brannigan" <kb***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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



Nov 15 '05 #11
Thank you so much. This is great. Exactly what I need!!

"Old Enough to Know Better" <Sp*******@NoSpam.com> wrote in message
news:jP*****************@fe1.columbus.rr.com...

"Kenneth H. Brannigan" <kb***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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/p...ifications.jsp

Nov 15 '05 #12
Do a web search for itextsharp, its an open source c# library for writing c#
"Ken Brannigan" <kb***@hotmail.com> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
Thank you so much. This is great. Exactly what I need!!

"Old Enough to Know Better" <Sp*******@NoSpam.com> wrote in message
news:jP*****************@fe1.columbus.rr.com...

"Kenneth H. Brannigan" <kb***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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/p...ifications.jsp


Nov 15 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
10
by: serge | last post by:
Using "SELECT * " is a bad practice even when using a VIEW instead of a table? I have some stored procedures that are identical with the difference of one statement in the WHERE clause. If I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
7
by: Serge Rielau | last post by:
Hi all, Following Ian's passionate postings on problems with ALTOBJ and the alter table wizard in the control center I'll try to explain how to use ALTOBJ with this thread. I'm not going to get...
4
by: Tugrul HELVACI | last post by:
Changing DisplayNames of my properties using PropertyGrid component, how ?? I'm using Delphi 2006 and I have a class defination like this: TPerson = class fPersonName : String;...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
6
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.