iclems / iOS-htmltopdf

MIT License
305 stars 79 forks source link

Avoid extra blank page (with A4, in some unexpected cases) #10

Closed fblondiau closed 10 years ago

fblondiau commented 11 years ago

The A4 paper size has been defined with more precision, in order to avoid an extra blank page in cases such as this one :

self.PDFCreator = [NDHTMLtoPDF createPDFWithHTML:@"Hello" pathForPDF:[@"~/Documents/demo.pdf" stringByExpandingTildeInPath] delegate:self pageSize:kPaperSizeA4 margins:UIEdgeInsetsMake(36, 36, 36, 36)];

iclems commented 10 years ago

Thanks!