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();
}