I want to crop pdfs and save them as pngs using my delphi program.
I am currently using the cmd tool pdftocairo to do this.
I want to use the libcairo-2.dll from poppler in my program to use the crop function but there is no documentions on how to call this lib.
This is how i use pdftocairo in cmd :
pdftocairo -png -r 168 -x 56 -y 1150 -W 1154 -H 370 pdf.pdf Extract/0
now how to call the libcairo dll so using this in my delphi program will be more helpfull as in error codes ?