Thanks. Now I am having a problem with the:
PdfDocument pdf = new PdfDocument( byteDataOfAPdf );
I get the following error:
Invalid PDF File. Cross-Reference table not found.
if i run the PDFPageStream directly, it renders fine, but when I put it into a byte[] and append it to the other doc, I run into problems.
PDFPrint.aspx:
MergeDocument document = new MergeDocument();
ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page( PageSize.Letter, PageOrientation.Portrait, 31.0f);
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Image(@"C:\images\DefaultHFLogo.gif", 125, 0, .5f));
document.Pages.Add(page);
WebClient MyWebClient = new WebClient();
byte[] byteDataOfAPdf;
byteDataOfAPdf = MyWebClient.DownloadData(@"http://localhost/sandboxweb/PDFPageStream.aspx");
PdfDocument pdf = new PdfDocument( byteDataOfAPdf );
document.Append( pdf );
document.DrawToWeb("HomeFacts.pdf");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PDFPageStream.aspx:
byte[] byteDataOfAPdf;
ceTe.DynamicPDF.Document document = new ceTe.DynamicPDF.Document();
ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page( PageSize.Letter, PageOrientation.Portrait, 31.0f);
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Image(@"C:\images\DefaultHFLogo.gif", 125, 0, .5f));
page.Elements.Add(new ceTe.DynamicPDF.PageElements.Label("Dev/Sub Name:", 0, 60, 93, eheight, sdtfontb, eheight-2, taright, RgbColor.Black));
document.Pages.Add(page);
byteDataOfAPdf = document.Draw();
Response.Write(byteDataOfAPdf);