Help with Acrostix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am using acrostix so I can add text and photos to an existing pdf.

So far I have the text working with this,

<?php

require("acrostix.php");

$text = file_get_contents("blah.txt");
$doc = ax_open_pdf_file("todo.pdf");
$style = ax_create_standard_styles("Times-Roman", 16);
$region = ax_create_rectangular_region(1, 1, 7.5, 8);
$lines = ax_lay_out_text($text, $region, $style, AX_FULL_JUSTIFY);
ax_add_page_elements($doc->pages[0], $lines);

$image = ax_load_jpeg_file("dingo.jpg", 1, 1, 72);
ax_add_page_elements($doc->pages[0], $image);

header("Content-type: application/pdf");
ax_output_pdf_file($doc);

?>

But the image doesn't add....and I've tried multiple ways. Can any of
you help? Here's the function list for acrostix,

http://www.conradish.net/acrostix/functions.html

And the site for acrostix,

http://chernyshevsky.blogspot.com/

--
Jay Contonio
http://www.jcontonio.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux