IT Community - Software Programming, Web Development and Technical Support

PDF creation using PHP

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-21-2007, 11:28 PM
Senthilkumar Senthilkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 93
Senthilkumar is on a distinguished road
Default PDF creation using PHP

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?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-22-2007, 02:00 AM
Anand Anand is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 52
Anand is on a distinguished road
Default Re: PDF creation using PHP

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-22-2007, 02:21 AM
Senthilkumar Senthilkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 93
Senthilkumar is on a distinguished road
Default Re: PDF creation using PHP

Hi Anand,

The original image resolution was 72dpi. How can i change the image with better resolution like 300dpi?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-22-2007, 03:45 AM
Anand Anand is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 52
Anand is on a distinguished road
Default Re: PDF creation using PHP

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-27-2007, 07:01 AM
Senthilkumar Senthilkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 93
Senthilkumar is on a distinguished road
Default Re: PDF creation using PHP

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?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -7. The time now is 07:35 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0