Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[pecl-imagick] sintassi cambiata?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Wed Aug 18, 2010 4:17 pm    Post subject: [pecl-imagick] sintassi cambiata? Reply with quote

sono solito trasformare dei documenti pdf in immagini png nel modo descritto, ad esempio, qui.
con questo codice:
Code:

<?php
 
/* Read page 1 */
$im = new imagick( 'test.pdf[0]' );
 
/* Convert to png */
$im->setImageFormat( "png" );
 
/* Send out */
header( "Content-Type: image/png" );
echo $im;
 
?>

improvvisamente (non ho neppure capito da quale upgrade), la sintassi con le parentesi quadrate per scorrere alla pagina desiderata sembra non funzionare più. consultando php.net, non mi sembra di avere trovato documentazione in proposito, ma è ovvio che, se una sintassi è stata abbandonata, ce ne deve essere una equivalente che produce la funzionalità.

qualcuno sa come fare?

edit:
temp che ci sia sotto un errore della mia installazione o un baco, perchè, togliendo l'header, visualizzo questo messaggio di errore:
Code:

Fatal error: Uncaught exception 'ImagickException' with message 'unable to open image `pippo.pdf': @ error/blob.c/OpenBlob/2514' in /var/www/localhost/htdocs/nuovaAgenzia/img.php:6 Stack trace: #0 /var/www/localhost/htdocs/nuovaAgenzia/img.php(6): Imagick->readimage('pippo.pdf[2]') #1 {main} thrown in /var/www/localhost/htdocs/nuovaAgenzia/img.php on line 6

il problema non è, dunque, la sintassi, perché il sistema individua il file pippo.pdf, ma non riesce ad aprire il file alla pagina richiesta.

edit 2:
niente da fare. non ne esco e ci ho fatto un baco.
per me i bug-wranglers, appena tornano dalle vacanze, mi fanno un cazziatone con i controfiocchi.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum