using System; using System.Text; namespace SmartPdf { internal class PdfHeader : PdfObject { private string subject,title,author,creationdate; public PdfHeader(int id,string subject,string title,string author,string creationdate) { this.id=id; this.subject=subject; this.title=title; this.author=author; this.creationdate=creationdate; } internal override Byte[] ByteStream { get { string s=""; s+=this.HeadObj; s+="<<\n"; s+="/Subject ("+subject+")\n/Title ("+title+")\n/Creator (Smart Solutions PDF4.NET)\n"; s+="/Author ("+author+")\n/CreationDate ("+creationdate+")\n"; s+=">>\n"; s+="endobj\n"; return ASCIIEncoding.ASCII.GetBytes(s); } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)