|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 4642 | minor | always | 06-27-11 10:37 | 07-06-11 14:23 | |
|
|
|||||
| Reporter: | rickHigh | Platform: | |||
| Assigned To: | OS: | ||||
| Priority: | normal | OS Version: | |||
| Status: | feedback | Product Version: | |||
| Product Build: | Resolution: | open | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| Summary: | 0004642: Problem displaying images with PDFLib | ||||
| Description: |
I would expect this to work. $logo = $pdf.load_image("auto", "images/caucho-logo.png", ""); if ($logo == -1) throw new Exception("Error: " + $pdf.get_errmsg()); $pdf.fit_image($logo, 50.0, 500.0, ""); $pdf.close_image($logo); It does not work and it does not display anything. If it could not find the image, the expectation is that it would return -1 as per PDFLib documents. I also tried this: $logo = $pdf.load_image("auto", "random_text_that_is_not_a_real_image.jpg", ""); if ($logo == -1) throw new Exception("Error: " + $pdf.get_errmsg()); $pdf.fit_image($logo, 50.0, 500.0, ""); $pdf.close_image($logo); I would expect the above to throw an exception. It does not. |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||