5

We have an issue using UIPrintPageRenderer while rendering an HTML in UIWebview to PDF page. The HTML contains a table with multiple rows (....) whose heights are known.

The UIWebView well renders that HTML but once transformed in PDF through UIPrintPageRenderer, it happens that extra spaces are added between rows. See exemple attached with 2 rows of a table. An extra space has been added in the PDF whereas it doesn't exist in the HTML. enter image description here We use that library : https://github.com/iclems/iOS-htmltopdf Any help would be nice. Regards, Morgan.

RNo
  • 56
  • 6
momomonet
  • 51
  • 2

1 Answers1

0

use CSS in your html and specialise with a specific height

body {
margin : 0;
}
SimpleojbC
  • 127
  • 2
  • 14