PDF thumbnails in Delphi -



PDF thumbnails in Delphi -

i wondering if there easy of generating thumbnails of pdf files in delphi. want render first page of pdf little bitmap (say 100x100 or similar). see 2 options 1 utilize pdf component, 2 somehow tap how explorer generates previews/thumbnails.

using library quickpdf or gnostice easiest option. i'm sure pdf thumbnails in explorer generated whatever pdf software installed such adobe. unless can guarantee proper pdf reader installed on every workstation thought of using thumbnails might not valid.

edit: here's finish application using quickpdf render first page of given pdf file bmp file. @ 10 dpi output bmp file 85 pixels wide 110 pixels high.

program pdftobmp; {$apptype console} uses sysutils, quickpdf; var q : tquickpdf; begin q := tquickpdf.create; seek q.loadfromfile(paramstr(1), ''); q.renderpagetofile(10 {dpi}, 1 {pagenumber}, 0 {0=bmp}, changefileext(paramstr(1),'.bmp')); q.free; end; end.

delphi pdf thumbnails

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -