php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12577 cpdf_import_jpeg() not working at all
Submitted: 2001-08-05 08:21 UTC Modified: 2002-07-07 20:01 UTC
From: robert at scpallas dot de Assigned:
Status: Not a bug Package: ClibPDF related
PHP Version: 4.0.6 OS: Windows 98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: robert at scpallas dot de
New email:
PHP Version: OS:

 

 [2001-08-05 08:21 UTC] robert at scpallas dot de
I wrote a script using the cpdf_* functions and everything is working fine.

Only the cpdf_import_jpeg() function does not produce any output at all.
There is no error message.

I called the function like this:

$pdf = cpdf_open(0);
cpdf_page_init($pdf,1,0,842,595,1);
cpdf_import_jpeg($pdf,"image.jpg",10,10,0,300,109,0,0,1);
cpdf_finalize($pdf);
Header("Content-type: application/pdf");
cpdf_output_buffer($pdf);
cpdf_close($pdf);

The pdf-file does not show anything.

Thanks,
Robert Grellmann

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-09 17:37 UTC] jimw@php.net
this works just fine for me (on a linux box). it could be that the win32 version of the clibpdf extension is compiled without jpeg support.
 [2002-07-07 20:01 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 08:01:28 2024 UTC