Fehler, die sich auf das erstellen einer mehrseitigen PDF-Dateien

Hat das schon jemand erstellt ein PDF-Dokument in eine iPad-app? Ich sehe, dass es neue Funktionen in der UIKit, dies zu tun, aber ich finde keine code-Beispiel für Sie.

BOOL UIGraphicsBeginPDFContextToFile (
   NSString *path,
   CGRect bounds,
   NSDictionary *documentInfo
);

void UIGraphicsBeginPDFPage (
   void
);

Fand ich ein Beispiel soll das arbeiten auf dem iPhone, aber das gibt mir Fehler:

Fri Apr 30 11:55:32 wks104.hs.local PDF[1963] <Error>: CGFont/Freetype: The function `create_subset' is currently unimplemented.
Fri Apr 30 11:55:32 wks104.hs.local PDF[1963] <Error>: invalid Type1 font: unable to stream font.
Fri Apr 30 11:55:32 wks104.hs.local PDF[1963] <Error>: FT_Load_Glyph failed: error 6.
Fri Apr 30 11:55:32 wks104.hs.local PDF[1963] <Error>: FT_Load_Glyph failed: error 6.
Fri Apr 30 11:55:32 wks104.hs.local PDF[1963] <Error>: FT_Load_Glyph failed: error 6.
Fri Apr 30 11:55:32 wks104.hs.local PDF[1963] <Error>: FT_Load_Glyph failed: error 6.
  • UIKit ist erweitert worden in OS 3.2 unterstützt die PDF-Funktionen. Also anstatt pdfContext = CGPDFContextCreateWithURL (url, &pageRect, docInfo); es wird die Verwendung pdfContext = UIGraphicsBeginPDFContextToFile( path, &pageRect, docInfo); das Beispiel, Das ich suchte, ist hier: iphonedevsdk.com/forum/iphone-sdk-tutorials/...
InformationsquelleAutor user279778 | 2010-04-30
Schreibe einen Kommentar