AbcPDF Asp code help

已完成 已发布的 Jun 5, 2009 货到付款
已完成 货到付款

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 工程 MySQL PHP 项目管理 软件构架 软件测试 网络主机 网站管理 网站测试

项目ID: #3924804

关于项目

3个方案 远程项目 活跃的Jun 5, 2009

授予:

stevebryant

See private message.

$34 USD 在4天内
(496条评论)
6.7

有3名威客正在参与此工作的竞标,均价$33/小时

subhre

See private message.

$34 USD 在4天内
(0条评论)
0.0
samindelhi

See private message.

$29.75 USD 在4天内
(0条评论)
0.0