1
我想在iOS中生成的pdf中插入隱形文本。如何才能做到這一點?iOS中的隱形PDF文本
這是我如何在此刻產生PDF:
- (void) generatePdfWithFilePath: (NSString *)thefilePath words:(NSString *)string
{
UIGraphicsBeginPDFContextToFile(thefilePath, CGRectZero, nil);
UIGraphicsBeginPDFPageWithInfo(CGRectMake(0, 0, 612, 792), nil);
[self drawText:string];
// Close the PDF context and write the contents out.
UIGraphicsEndPDFContext();
}