Profile Topics Started Replies Created Engagements Forum Replies Created Viewing 1 post (of 1 total) Author Posts MaikL in reply to: body background-color vs. background-image August 25, 2010 at 10:24 #28189 I´d like to thank you, for the quick answer. It works perfect. 🙂 public class Pd4Php { private String image_url; public static void main(String[] args) throws Exception { ... Pd4Php converter = new Pd4Php(); converter.generatePDF( args[0], args[1], args[2], args[3], args.length > 4 ? args[4] : null ); // give an additional argument to the command line } private void generatePDF(String inputUrl, String htmlWidth, String pageFormat, String fontsDir, String imageUrl) { // an additional String imageUrl if(imageUrl != null) { PD4PageMark footer = new PD4PageMark(); footer.setPageBackgroundImageUrl(imageUrl); pd4ml.setPageFooter(footer); } } In your PHP Code you need to add the following: passthru('java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php '' . $_POST . '' 800 A4 $_POST 2>&1'); Author Posts Viewing 1 post (of 1 total)