Great content, I have problem with images in loop, also set it in grid, for example 5 images per page in 2 row. Images are not the same dimensions!
@plus2net13 жыл бұрын
You can keep same dimension for all images. Check the image at the top of this page . www.plus2net.com/php_tutorial/pdf-image.php Location height and width you can fix , location may change as you have multiple images per page but width and height you can keep same inside the loop. If keeping same width and height is an issue , then you can use GD function to resize the images by keeping aspect ratio same before placing them inside the loop. Please Let us know if any issue is there.
@jarodmorris6112 жыл бұрын
Anyone know if FPDF or TCPDF can be used to insert a smaller image as the top layer on a PDF? Kind of like using a GIF or PNG as a label or sticker on a document.
@bnlovesyou22412 жыл бұрын
how to add 2 image in 1 page? when fetching from sql?
@plus2net12 жыл бұрын
While looping take care of Y coordinate ( increase ) to position them one after the other , not one over other inside the loop
@titechslessons3 жыл бұрын
please i need help on how to select and display an image in PDF using MYSQL database
@plus2net13 жыл бұрын
If is stored in MySQL Blob or it is stored in any directory then can be collected added to any image or template. www.plus2net.com/php_tutorial/gd-certificate-mysql-photo.php Image can be added to any PDF document also and same can be generated. www.plus2net.com/php_tutorial/pdf-image.php These are the ways it can be done. Let me know if any other way you want to do this.
@TechFutureFocus3 жыл бұрын
please if i have normal PDF , and i want insert inside it image , how i can do this ? it normal pdf not Created . so i want open it with php and add inside it image as QR
@plus2net13 жыл бұрын
There are libraries to read PDF2Text(), but as you are using image only, so you can use GD library also to add two images. If your main document can be read as image then the QR code can be added at any position within the image. Another solution can be to read the pdf by using imageMagick in PHP and then add the QR code to this at any location. Sorry I never tried this , so don't have ready solution.
@techforjazz76612 жыл бұрын
how to install this library?
@plus2net12 жыл бұрын
www.plus2net.com/php_tutorial/pdf-cell.php Please read first few lines , Download the class file and keep the font directory in same working directory.
@ShahbazAhmad-yn8gu Жыл бұрын
Please guide me how to display pdf file inside fpdf
@plus2net1 Жыл бұрын
www.plus2net.com/php_tutorial/pdf-cell.php Details are here, You can read the pdf file and then place it in new file, use this importPage(1) Don't have any sample code now but you can try.
@charlesweru979 Жыл бұрын
how do i solve fpdf image obj_get matrix error
@plus2net1 Жыл бұрын
At what stage ( or line ) you are getting this error ? Try with a simple image and check that image object is created or not . Check this simple code here . www.plus2net.com/php_tutorial/pdf-image.php Try these lines and see if it is working or not .
@charlesweru979 Жыл бұрын
@@plus2net1 I'm trying to generate a report from a software which is giving me this error
@plus2net1 Жыл бұрын
@@charlesweru979 Without this image generation in fpdf you are getting the error from your software ? Or while integrating you are getting. Most likely the problem is within your software.
@bnlovesyou22412 жыл бұрын
Im using this code: foreach ($imageList as $image) { $pdf->AddPage(); $pdf->Image('dealers_picture/'.$image['name'],30,30,160,110); } but it show 1 picture per page, I want 2pictures per page
@plus2net12 жыл бұрын
Inside the foreach loop you have to increase the Y coordinate to place the image one below the other, otherwise the one over the other it will be drawn or the last image only will be displayed . You have to change the location coordinates
@techforjazz76612 жыл бұрын
how to download this instead of showing prev?
@plus2net12 жыл бұрын
$pdf->Output('my_file.pdf','I'); // Send to browser and display $pdf->Output('my_file.pdf','D'); // Force file download with name given ( name can be changed ) $pdf->Output('my_file.pdf','F'); // Saved in local computer with the file name given $pdf->Output('my_file.pdf','S'); // Return the document as a string. Please check this www.plus2net.com/php_tutorial/pdf-cell.php