These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

merging vectored PDFs with html text on a webserver

mazzamuz
Registered: Feb 10 2008
Posts: 11

I have a delicious open-source script which creates a PDF from html with a PHP front end. html2ps off the tufat site

My Goal is to let people edit Print ready PDF's on line.

So far i am looking at merging the text from the html file - originally from a database into a print ready/ vector based PDF (originally made up in illustrator)

Of paramount importance is the positioning font and size of the text in the output PDF

I feel im really fishing here but any guidance on the matter would be greatly appreciated

thx
m

My Product Information:
Reader 8.0, Unix/Linux
mazzamuz
Registered: Feb 10 2008
Posts: 11
ive come across Adobe XML Forms Architecture (XFA)
is this a solution?
mazzamuz
Registered: Feb 10 2008
Posts: 11
im now taking hte route of using fdf generated from php

however am unable to see the posted values come through? Any ideas?

<?php
// Uses names and values from a post method

$url="http://thefirehouse.co.za/pdf%20forms/form.pdf";

$values=$HTTP_POST_VARS;

$fdfdata = "%FDF-1.2\n%âãÏÓ\n";
$fdfdata .= "1 0 obj \n<< /FDF ";
$fdfdata .= "<< /Fields [\n";//loop that adds the field names and values
foreach($values as $key=>$val)
{
$fdfdata.="<< /V ($val)/T ($key) >> ";
}


$fdfdata .= "]\n";
$fdfdata .= "/F ($url) >>";
$fdfdata .= ">>\nendobj\ntrailer\n<<\n/Root 1 0 R\n>>\n";
$fdfdata .= "%%EOF";

//uncomment if you actually want to write a FDF file
//touch ($form.".fdf");
//$FD = fopen ($form.".fdf", "w");
//fwrite($FD,$fdfdata);
//fclose ($FD);

/*** Now we display the FDF data which causes Acrobat to start ***/

header ("Content-Type: application/vnd.fdf");
print $fdfdata;

//use this instead of print if you are writing to a file rather than just the browser
//header("Location: ".$form.".fdf");

?>