I am having a problem in creating the multi page PDF. I am using NSMutableData for storing the PDF data. When I am drawing a new page using the following code
CGContextSetRGBFillColor(context, 0.0, 0.0, 0.0, 1.0);
** Error Line **
UIGraphicsBeginPDFPageWithInfo(CGRectMake(0, 0, 595, 841), nil);
[self drawPageAtIndex:self.numberOfPages+1 inRect:CGRectMake(0, 0, pageWidth, pageHeight)];
[self drawBorder];//draws Border to the page
It shows me following error on console
<Error>: replacing +/-infinity with -2147483648.
<Error>: replacing +/-infinity with 2147483647.
<Error>: replacing +/-infinity with -2147483648.
<Error>: replacing +/-infinity with 2147483647.
<Error>: replacing +/-infinity with -2147483648.
<Error>: replacing +/-infinity with 2147483647.
<Error>: replacing +/-infinity with -2147483648.
<Error>: replacing +/-infinity with 2147483647.
Please can someone help me to resolve the error.
Here is the link which i reffered previously for the same error
it says that core graphics logs are getting confusing values but i am not getting a resolution on the error Thank You.