{oapdf_gg}
PDF document is the more popular electronic document format in Office Automation (OA), such as software development, frequently used to the format, but on how to create PDF format documents is little information available to search online found to have is posted with a "violence" to crack the method, code snippet is as follows:
StreamWriter pPDF=new StreamWriter(filePath); ArrayList xRefs=new ArrayList(); float yPos =0f; long streamStart=0; long streamEnd=0; long streamLen =0; string strPDFMessage=null; //PDF Document header information strPDFMessage="%PDF-1.1\n"; ConvertToByteAndAddtoStream(strPDFMessage);
xRefs.Add(mPDF.Length); strPDFMessage="1 0 obj\n"; ConvertToByteAndAddtoStream(strPDFMessage); strPDFMessage="<< /Length 2 0 R >>\n"; ConvertToByteAndAddtoStream(strPDFMessage); strPDFMessage="stream\n"; ConvertToByteAndAddtoStream(strPDFMessage); ¡¡ |