PDF issues with imagemagick and lazarus

I ran into my first real Lazarus/FPC issue today. There is no component for displaying or thumbnailing PDF files. I googled it a lot, and it seems there has only been developed something for creating PDFs.
It was to overwhelming creating a component myself, so I decide to take another route: Convert the PDF through a 3 party program, and save the output, where I wanted it.
Decided I would use imagemagick for this. Which gave me the next issue: “attempt to perform an operation not allowed by the security policy `PDF’ @ error/constitute.c/IsCoderAuthorized/421”
This was easier to solve this:
https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion#comment94196251_53180170

Since I am running version 9.55 I was good!
So now I just need to implement the command in my Lazarus project.

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *