What’s wrong with PDFDocumentMBS? I only need the first page, but it should be possible to do all pages. There is also a parameter for the quality:
dim thePDF as new PDFDocumentMBS(data)
if thePDF <> nil then
dim thePDFPage as PDFPageMBS = thePDF.pageAtIndex(0)
dim theColor as NSColorMBS = NSColorMBS.whiteColor
if thePDFPage <> nil then
dim theImage as NSImageMBS = thePDFPage.Render(72.0, 0, theColor)
if theImage <> nil then DataPicture = theImage.CopyPicture
end if
end if