Annulleret

PHP: PDF EDITING FUNCTION

We need a PHP function that can modify a PDF by writing inside some text and/or images.

The function must use only php classes for the pdf editing (we dont want to install win32 or linux software on the server).

1) the function will have this parameters:

* file name (the path and name of the pdf that must me edited)

* destination name (the path of the edited/new pdf file created)

* an array of cooridinates and additional info (x1-y1,x2-y2,page,type,option,text/image)

--- x1-y1,x2-y2: coords of the area to edit

--- page: the number of the page that will be edited at the x1-y1,x2-y2 coordinates

--- type: can be "image" or "text".

--- option: can be "only the current page", "all pages", "current page and above"

--- text/image: is the text (a string) or the image (path to the image file) to write on the flash

--- optional additional text params (

------ font size

------ font family

------ align (left, center, right)

--- optional additional image params

------ fit-if-bigger (true/false): stretch the image to fit the x1-y1,x2-y2 area if the image is bigger then the area

------ fit-if-smaller (true/false): stretch the image to fit all the x1-y1,x2-y2 area if the image is bigger then the area

------ constrain proportions (true/false): only if the image will be stretched

------ center in the area (true/false): if true, the image will be centered on the area, if false the left up corner of the image will be placed at x1-y1.

2) the function will process all the data in the coords array and build the new pdf

Please pay attention: The function must use only php classes for the pdf editing (we dont want to install win32 or linux software on the servr).

A zip file is available with:

- [url removed, login to view] with 2 areas (green one for the logo, yellow for the text)

- [url removed, login to view] (a test image to insert in the pdf into the green area)

- [url removed, login to view] (a test image to insert in the pdf into the green area)

- [url removed, login to view] (a test image to insert in the pdf into the green area)

- [url removed, login to view] (example text to insert in the pdf into the yellow area)

Please see that the text file has only an example text: the function must get the text as a string (and not load the text from a external file)

We dont have the coords of the green and yellow areas, because who will code this function will tell us what we must do to find the coordinates.

When this project will start, i will give another pdf to test with.

Færdigheder: PHP

Se mere: php pdf editing, yellow software, writing proportions, writing gif, want created logo, up string, txt jpg, true green, server load test, number function, need edit pdf, name writing images, gif txt, get pdf, get external data, function number, find php, pdf editing function, php pdf function, image pdf function, writing editing software, writing editing, win32, want editing, text editing

Om arbejdsgiveren:
( 13 bedømmelser ) Onigo di Pederobba, Italy

Projekt-ID: #267085