[wp-trac] [WordPress Trac] #38717: Indicate that PDF thumbnail previews are just previews
WordPress Trac
noreply at wordpress.org
Wed Nov 9 17:20:25 UTC 2016
#38717: Indicate that PDF thumbnail previews are just previews
--------------------------+------------------
Reporter: helen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses: ui
--------------------------+------------------
Comment (by lukecavanagh):
@folletto
Seems like it possible to determine the number of pages in a PDF file.
http://stackoverflow.com/questions/14644353/get-the-number-of-pages-in-a
-pdf-document
{{{
$image = new Imagick();
$image->pingImage('myPdfFile.pdf');
echo $image->getNumberImages();
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38717#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list