iWestDev PlanetiWestDev Title
Left Corner  Home    About    Contact    Sponsor  Right Corner
Programming
  Acquire GBA  
  ezNetwork Engine  
  IM Compatible  
  Laffy Taffy GBA  
  Newsletter  
  Numbers Game  
  Scantron  
  SEO Tips  
  Speed up Postgres  
  T1 work arounds  
  Install squirrelmail  

Other
  Towing Scam  

   12-17-2008 - ImageMagick html2ps and pixelating problem
Lately, I've been trying to add .pdf automatic generation to one of my websites. The steps I had been taking was:
  1. Create my desired text in html
  2. Use html2ps to convert the html to a postscript format so that it was compatible with ImageMagick
  3. Use ImageMagick to convert to .pdf
Anyhow, the problem I started getting was that when I was adding text for the 2nd page all the text started to pixelate. This seemed really odd that just a 2nd page would make it harder for all the text to be readable. After digging around and trying tons of different things, I found a -density option. The example I found used 600x600. This seemed way to overkill for what I was doing. At that size it took forever to genereate and download. After some more testing 350x350 seemed to work fine. Obviously, we always want faster with more power, but it seems to be close enough to not be a problem. Here is an example of the command line to help those that found this entry

convert -density 350x350 test.ps test.pdf

(2) Comments


how do these steps compare to a 12 step program?


(2:48 pm) 12-23-2008
excellent tips. thanks for the info http://www.carnaticindia.com


(03:23 am) 07-14-2009
Leave a comment? (2000 character max)
(Verify Code)




   
Copyright© 2004 - 2008 West Anderson