final polish
This commit is contained in:
parent
676d35ed74
commit
5ca90dc2be
5
TODO
5
TODO
@ -1,6 +1,5 @@
|
|||||||
- vipsthumbnail needs to know about pdfload
|
- vipsthumbnail needs to know about pdfload ... open, get size, open again
|
||||||
|
with scale set to make a thumbnail
|
||||||
- trim page edges? we often have black now
|
|
||||||
|
|
||||||
- could load pdf thumbnails?
|
- could load pdf thumbnails?
|
||||||
|
|
||||||
|
@ -169,7 +169,6 @@ static void
|
|||||||
vips_foreign_load_pdf_parse( VipsForeignLoadPdf *pdf,
|
vips_foreign_load_pdf_parse( VipsForeignLoadPdf *pdf,
|
||||||
VipsImage *out )
|
VipsImage *out )
|
||||||
{
|
{
|
||||||
PopplerRectangle crop_box;
|
|
||||||
double width;
|
double width;
|
||||||
double height;
|
double height;
|
||||||
double res;
|
double res;
|
||||||
@ -177,8 +176,6 @@ vips_foreign_load_pdf_parse( VipsForeignLoadPdf *pdf,
|
|||||||
|
|
||||||
poppler_page_get_size( pdf->page, &width, &height );
|
poppler_page_get_size( pdf->page, &width, &height );
|
||||||
|
|
||||||
poppler_page_get_crop_box( pdf->page, &crop_box );
|
|
||||||
|
|
||||||
/* We need pixels/mm for vips.
|
/* We need pixels/mm for vips.
|
||||||
*/
|
*/
|
||||||
res = pdf->dpi / 25.4;
|
res = pdf->dpi / 25.4;
|
||||||
|
Loading…
Reference in New Issue
Block a user