This is a discussion on PDF creation using PHP within the PHP Programming forums, part of the Web Development category; Hi All, I have converted a JPG image to PDF using image magick libruary. I tried to save the PDF ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi All, I have converted a JPG image to PDF using image magick libruary. I tried to save the PDF page to JPG image. But the resolution of the image is showing with 72dpi. How can i change the resolution to 300dpi? |
| Sponsored Links |
| |||
| Hi Senthilkumar, For getting better resolution image, your origial image should better of best resolution. ie. your original image should be of 300 dpi of resolution.
__________________ None of us is As Strong as All of us. |
| |||
| Hi Senthilkumar, There is a function available in imagemagick library to set the dpi of an image. imagick_setdpi($imagehandler,300,300); This function will set 300 dpi to the image in the handler. Hope this will help you.
__________________ None of us is As Strong as All of us. |
| |||
| Hi Anand, As per your reply I have used imagick_setdpi() function to set the image resolution to 300dpi before PDF creation and then create the jpg image to pdf. After that I tried to save the PDF page to JPG image. The resolution of the image is showing with 72dpi. How can i set the resolution of the pdf page to 300dpi? |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/php-programming/4556-pdf-creation-using-php.html | |||
| Posted By | For | Type | Date |
| HotPHPPER Feed | This thread | Refback | 11-22-2007 12:43 AM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TF30177: Team Project Creation Failed | arjkhanna | Server Management | 2 | 01-31-2008 08:34 AM |
| Servlet creation and servlet loading........ | leoraja8 | Java Programming | 4 | 09-25-2007 12:22 AM |
| JPEG Creation problem | JSureshkumar | PHP Programming | 4 | 05-17-2007 06:16 AM |