| | |
PHP to png, png to pdf
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Nov 2009
Posts: 3
Reputation:
Solved Threads: 0
Hi All,
I'm looking for a technique how to save image generated from php to png/jpg/gif, save the image to the server. Later, I want to include the image file to a pdf file generated from a php code.
I'm referring the image generated php from HERE
I'm looking for a technique how to save image generated from php to png/jpg/gif, save the image to the server. Later, I want to include the image file to a pdf file generated from a php code.
I'm referring the image generated php from HERE
0
#3 19 Days Ago
I am assuming that u r done with image creation on the fly...
tell me if u need to know how to create image too..
to embed that image into a pdf file use this:
hope this helps.. cheers !!
tell me if u need to know how to create image too..
to embed that image into a pdf file use this:
PHP Syntax (Toggle Plain Text)
<?php $pdf = pdf_new(); pdf_open_file($pdf, "filename.pdf"); pdf_begin_page($pdf, 595, 842); //sets pdf size 595*842 is A4 $png_image = pdf_open_png($pdf, "image.png"); //image that u want to embed. u can also use pdf_open_image instead pdf_place_image($pdf, $png_image, 200, 300, 1.0); //parameters: pdf file, image file, x pos, y pos, scale pdf_close_image($pdf, $png_image); pdf_end_page($pdf); pdf_close($pdf);
hope this helps.. cheers !!
•
•
•
•
Hi All,
I'm looking for a technique how to save image generated from php to png/jpg/gif, save the image to the server. Later, I want to include the image file to a pdf file generated from a php code.
I'm referring the image generated php from HERE
Last edited by venkat0904; 19 Days Ago at 5:09 am.
Gimme reputation points if u find my post helpful.
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
0
#5 16 Days Ago
Gimme reputation points if u find my post helpful.
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
![]() |
Similar Threads
- Add images in the PDF file using PHP (PHP)
- PNG and BMP image resizing problem (PHP)
- php pdf - converting to png/jpg/gif/tif (PHP)
- Generate PDF, DOCX and DOC with PHP (Show Off your Projects)
- creating pdf in php (PHP)
- php and pdf? (PHP)
- php mysql image again PLEASE HELP (PHP)
- Php Mysql Image Question (PHP)
Other Threads in the PHP Forum
- Previous Thread: Browser can't find files after changing permissions
- Next Thread: getting variable without extension
| Thread Tools | Search this Thread |
action address ajax apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display domain dynamic echo email error errorlog file files folder form format forms function functions google href htaccess html image include insert interactive ip java javascript joomla limit link load login mail malfunctioning masterthesis menu mlm multiple mysql nodes oop paypal pdf php popup problem query radio ram random record recursion reference remote return script search server sessions sms source space sql syntax system table tutorial unset update upload url validation validator variable video web websitecontactform youtube





