PDF Font on Mobile

I’m trying to create a PDF on iOS and not finding the documentation to be very good.

Should I use PDFGraphics rather than Graphics? All the examples use Graphics.

I want to use a safe font, like Helvetica, but g.Italic isn’t available in PDFGraphics. (Again, the docs don’t say this)

So if I use:

g.Font = New Font("Helvetica-Oblique", 9)

Will that use Helvetica and make it italic? Or will this be considered a non-standard PDF font?

Oh, and g.FontUnit isn’t available in PDFGraphics. (Again, the docs don’t say this)

Wow, that is so far from how you do it with Desktop I am shocked. The write once, use everywhere days are long gone.

Finding that, I checked a search engine for some details. It appears Helvetica Oblique is part of the Standard 14, so you should be okay. Wouldn’t hurt to test (I don’t have simulators ready to go right now).

1 Like