Need some work done? Post a Project Today
Require a experienced & fast PHP programmer to parse an XML file with information as follows:
- Canvas Size
- Text (In HTML format)
- Image (JPEG)
And create a PDF from that information.
As stated, the text is in HTML format. The position of the text realtive to the canvas is defined in the XML file. Furthermore, the text block can be rotated and can have transparency applied to it. I have attached a sample XML file with a txt node with the HTML code that will need to be parsed and displayed in the HTML file. Please view this attachment and ensure you can parse the HTML code ***fully*** and make it match in the PDF. If you can parse most of the HTML code and there are a few attributes you can't do, please leave me a message detailing this on PMB and I might consider you if I can not get someone to parse all of the HTML.
The images are JPEGS (possibly TIFFs if they work better), you will need to import into the PDF from the path given in the XML file. The image also has X and Y co-ordinates defined for it. Furthermore, the image should be able to rotate and have its transparency set.
On a final note, there should be some form of depth management as in the XML file, each item (Text and Image) have their depth defined.
I need the script completed in ***5 Days*** after bidding closed. In the future I expect to require more work in regards of adding further functionality to the script, (I will pay for the additions) so please keep this in mind.
Sample XML files to give an idea of what needs to be parsed have been attached
If you decide to use the fPDF plugin there are a few ready mades scripts which should help you acieve achieve some of my goals:
HTML -> PDF:
http://fpdf.org/en/script/script42.php (I'm not sure how good this is, might need to write your own version.. but this gives pointers of how to do this... if you decide this script is good enough.. will need to hack it a little for it to handle , and a few more)
Image and Text transparence:
Note, this is not conclusive and you will need to do quite a bit of work yourself.