I don’t think this will help much, but I think your best option is to make a PDF for the image (worthy of DPI) and display the image instead. I do this for the application, but we do this server part using ImageMagick - you don’t know how to do it in obj-c. Also note that basically text-based PDF will be much larger (file size) when rasterized.
However, you can also try to insert the PDF file into the HTML page and load this HTML code into the WebView, which can at least avoid the gray border / artboard.
Jason source
share