ImageMagick and html2ps

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
bizk

ImageMagick and html2ps

Post by bizk »

I have got ImageMagick and html2ps working together.
But I need to pass a config file to html2ps that changes each time I call the command.

How do I pass the config file to html2ps from a commandline call to Imagemagick?

The command I am using is (pseudocode):

Code: Select all

convert -quality 85 -geometry 600x800 /path/to/page.htm /path/to/output/file.jpg 
Which is working fine.
Somehow I also need to pass it the information of where the config file is:

Code: Select all

/path/to/html2ps/config/file.psconfig
Can anyone give me a clue or 2 as to how I do that?

My delegates file reads:

Code: Select all

  <delegate decode="htm" command='"/path/to/html2ps/html2ps/bin/html2ps" -U -o "%o" "%i"' />
any ideas?

cheers

Biz
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Contact:

Re: ImageMagick and html2ps

Post by anthony »

You can always DIY it, for example something like this (untested) could be used.

Code: Select all

  html2ps -U -o - image.html | convert ps:- .....
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
bizk

Re: ImageMagick and html2ps

Post by bizk »

Hi Antony

In the end what I did was to call html2ps directly and convert the html directly into a postscript file. Imagemagick subsequently converts the .ps file to whatever image format I need (jpeg at the moment).

Thanks for your help, I'll probably return to this later on in the project's development (http://www.dutycrew.net if you're interested. Imagemagick will certainly be getting a credit [or two!]). Hopefully it will make raise enough funds, so that we can put something worthwhile back into our open source community.

cheers

Biz
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 8 guests