AbcPDF Asp code help

Completed Posted Jun 5, 2009 Paid on delivery
Completed Paid on delivery

We are testing and using AbcPDF component in an ASP vbscript application.

from

[url removed, login to view]

The functions are located here:

[url removed, login to view]

I need a simple ASP code that we can just copy and paste to generate a text and Image watermark on all of the pages in an existing PDF.

## Deliverables

SERVER = Windows 2003

LANGUAGE = Classic ASP VB SCRIPT

This is just one of many requests for this component that we will need help with.

For this script we are taking an existing PDF and I would like some simple options that we can turn on and off when we call this page to work.

1. HTML text (This is pulled from a database so I just need a variable to define

2. Ability to resize the text output (this is already a function with AbcPDF

3. Ability to select either the top of each page AND/OR to repeat all the way down the page giving us the ability to change the variable to modify the spacing between each line.

4. The Alpha or transparency we can adjust with on variable

5. Jpg Image option. IF we want we can turn this option on to pull an image located on the webserver and place this image either the top right or left center or bottom, control size, OR if the image repeats through the entire document. We als noeed to be able to control the transparency.

What we need is just some simple variables to define at the top of the page like:

UseText = True or false

UseImage = True or False

TheText = ""

TheTextTransparancy = ""

TextLocation = (options top, top and bottom, Top Bottom and center etc...)

TextRepeat = (Options to repeat the "TheTExt" for each line return

TextLineReturn = How many line between the "TextRepeat"

TextPage = (Defines what pages to put on the text, either 1st page, last page or all pages or first and last)

TheImagePath = (Mappath etc...)

TheImageSize = In pixles X & Y

TheImageTransparancy = ""

TheImage Location = (options top, top and bottom, Top Bottom and center etc...)

TheImageRepeat = (Options to repeat the Image, this is different than the line as the next image would be right next to the first and tile itself all the way down the pages.

TheImageSpacing = How many spaces between the images or how space is measured.

ImagePage = (Defines what pages to put on the Image, either 1st page, last page or all pages or first and last)

This is pretty easy, I just don't have the time.

Here is what we started with, but I am having problems with the alpha and I don't have time to do all the variables and code :

Set theDoc = [url removed, login to view]("[url removed, login to view]")

[url removed, login to view] "[url removed, login to view]"

theTEXT = "<font pid=" & [url removed, login to view]("Verdana", "Latin", False, True) & " ><br><B>&nbsp;&nbsp;This is a test watermark</B>"

[url removed, login to view] = 15

theCount = [url removed, login to view]

For i = 1 To theCount

[url removed, login to view] = i

'theAlpha = [url removed, login to view] = 100 (if I make this line active the PDF does not work)

[url removed, login to view] theTEXT

[url removed, login to view]

Next

[url removed, login to view] "E:\[url removed, login to view]"

[url removed, login to view]

***************************

PLEASE TEST YOUR CODE LOCALLY BEFORE SENDING

Amazon Web Services Engineering MySQL PHP Project Management Software Architecture Software Testing Web Hosting Website Management Website Testing

Project ID: #3924804

About the project

3 proposals Remote project Active Jun 5, 2009

Awarded to:

stevebryant

See private message.

$34 USD in 4 days
(496 Reviews)
6.7

3 freelancers are bidding on average $33 for this job

subhre

See private message.

$34 USD in 4 days
(0 Reviews)
0.0
samindelhi

See private message.

$29.75 USD in 4 days
(0 Reviews)
0.0