Thank You Asad,
I have this working with classic ASP and a COM Wrapper. Can you help me with some basic programming using classic ASP and a COM Wrapper. I am not quite sure how to proceed. Here is what I want to do.
1. Open a PDF document via a path ( **this is a one page PDF** )
2. Overlay some text (centered at row x, between column y1 and y2) on the opened PDF .
I want to pass the coordinates and the text from classic ASP to the COM Wrapper.
3. Overlay a picture in (centered at top x, between column y1 and y2)
4. Save the PDF to a output file
=============================================
Here is my attempt at the Classic ASP Code
<%
Dim pdfHelper
Set pdfHelper = CreateObject("SampleWrapperAspose.Test")
pdfHelper.readDocument( "c:\path\to\the_input_file.pdf" )
pdfHelper.placeCenteredText( 10, 100, 300, "Lorem Ipsom Text" )
pdfHelper.placeCenteredPicture( 14, 100, 400, "c:\path\to\the_input_photo.jpg" )
pdfHelper.SaveDocument( "c:\path\to\the_output_file.pdf" )
SET pdfHelper = Nothing
%>
=============================================
Here is my COM WRAPPER template.
How do I open a pdf and keep it open while changing it within classic asp?
Not sure how to pass numbers for the coordinates?
using Aspose.Pdf;
namespace SampleWrapperAspose
{
public class Test
{
public void readDocument( string inputPath )
{
}
public void placeCenteredText( row, col1, col2, string theText )
{
}
public void placeCenteredPicture( top, col1, col2, string photoPath )
{
}
public void saveDocument( string ouputPath ) {
doc.Save( outputPath );
}
}
}