How to convert PDF to TIF with PascalMagick / MagickWand
Posted: 2015-10-07T08:15:37-07:00
Hello,
i need to convert PDF to TIF and use MagickWand (with PascalMagick). On commandline I managed to convert the file perfectly with
With MagickWand API I only get a very bad imagequality (72 dpi???). I need to translate both, the -density and the -flatten options to MagickWand.
Here is the sourcecode so far:
Any help is welcome.
Thank you
Florian
i need to convert PDF to TIF and use MagickWand (with PascalMagick). On commandline I managed to convert the file perfectly with
Code: Select all
convert -density 200 -flatten 315a743.pdf[0] temp.tif
Here is the sourcecode so far:
Code: Select all
begin
MagickWandGenesis;
wand := NewMagickWand;
MagickSetImageResolution(wand,200,200);
// wand:=MagickFlattenImages(wand); ---> No entrypoint in CORE_RL_wand.DLL????
MagickReadImage(wand, PChar(UTF8ToSys('315a743.pdf[0]')));
MagickWriteImage(wand,PChar('temp.tif'));
...
end
Thank you
Florian