We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:





44963 Jun 7,2006 05:23 PM Jun 9,2006 01:29 PM ASP.NET Web Forms (Classic) 2
Tags: PDF
Administrator [Syncfusion]
Asked On June 7, 2006 05:23 PM

Is it possible to use System.IO.StreamReader to read from a PDFLogicDocument created within an ASPX page to add to a PDFDocument within the same ASPX page?

Ajish [Syncfusion]
Replied On June 8, 2006 10:57 AM

Hi, Thank you for your interest in Essential PDF. I am not sure if I understand your requirement right. However if you are trying to save a pdf document to stream in Flow model [PDFLogicDocument], create another pdf document using Grid model [PDFDocument] and then merge this two files from stream in the same aspx file then it is possible with Essential PDF. Here is sample which does the above: MergeDocuments.zip Please let me know if you have any other questions. Thanks, Ajish.

Administrator [Syncfusion]
Replied On June 9, 2006 01:29 PM

This is almost what I want, but I do not want to merge the two documents (as it puts the information on separate pages). I would like to put the MemoryStream from the PDFLogicDocument into the PDFDocument within the same aspx file. Is this possible? So in your sample file, I want something along the lines of this line of code pdfDoc.Graphics.DrawText(new PointF(10,10), (MemoryStream)ldoc.ToString(), pdfDoc.Fonts.Add(Syncfusion.Pdf.Shared.FontBaseFamily.Courier)); So that I can control the location of the MemoryStream text and not have it appear on the next page. Thanks!


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.