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.
Syncfusion Feedback

Text overlay to PDF sample

Thread ID:

Created:

Updated:

Platform:

Replies:

105696 Nov 14,2012 02:20 AM Nov 15,2012 03:45 AM ASP.NET Web Forms (Classic) 2
loading
Tags: PDF
Samuel Lee
Asked On November 14, 2012 02:20 AM

Here is my simple requirement.  Artwork design file from Graphics Dept sending to Production Dept. It is a pdf file from Adobe AI tool and will be the source file for Essential PDF Overlay.  In Production Dept, we have a web screen that allow the user to select the pdf source file and insert some descriptions into textboxes.  Essential PDF Overlay will be programmed to at the descriptions into the pdf source file at the bottom of the PDF. 

The Syncfusion sample is PDF overlay to PDF. My case is more like Text overlay to PDF.  Is there anyone can help by providing me a simple sample for my case?

My asp.net web application is running on .net 2.0 framework in VB.net language.

Thank you for your time.


 


Samuel Lee
Replied On November 14, 2012 02:21 AM

We are using latest 10.4.0.53 for Essential PDF component.

Geetha M [Syncfusion]
Replied On November 15, 2012 03:45 AM

Hi Samuel,

Thank you for your interest in Syncfusion products.

You can add content to source PDF document using the following code snippet:

' Write description.

loadedPage.Graphics.DrawString(description, font, blackBrush, New RectangleF(location, size))

The location and size of the text should be known in prior to get the expected result. I had placed a simple sample demonstrating this in the following link:

TextOverlaySample.zip

The following assemblies should be added as reference for running the application:

Syncfusion.Compression.Base

Syncfusion.Core

Syncfusion.Pdf.Base

Could you please check this sample and let me know if you need more details?

Regards

Geetha


CONFIRMATION

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.

Warning Icon 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.Close Icon

;