pdfPage.draw ios15 strange results

when calling PDFPage.draw the first page of the pdf prints by repeating the first word over and over. Only in iOS15 all other iOS versions print the page normally. Resaving the document in acrobat with 'optimized' on fixes the issue. However, we can't guarantee our users will do that before uploading a pdf in our system.

  • To give more context, we read in a pdf document, the user draws on top of it and signs it etc, we then re-save it using pdfpage.draw(..)

    Something about this particular page iOS 15 does not like. It displays it fine but when it saves it back it does the above.

  • More info... the repeated word is actually an image in the pdf... not sure if that helps

  • we are experiencing similar issues with other images in our pdfs. The first image in a page prints over and over (replacing all other images on that page) when we call pdfpage.draw() on that page. This is a major issue for us!!! iOS15 ONLY!!!!!

Add a Comment

Replies

To give more context, we read in a pdf document, the user draws on top of it and signs it etc, we then re-save it using pdfpage.draw(..)

Something about this particular page iOS 15 does not like. It displays it fine but when it saves it back it does the above.

  • There are several posts that show there is a problem with draw in iOS 15.    Such as this one where an image is repeated:    https://developer.apple.com/forums/thread/691431?answerId=689899022#689899022%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0You should file a bug report.

  • ok have submitted a bug. Are you an Apple employee?

  • @nefimoffRTA, no I'm not an Apple employee

Add a Comment

I think this is fixed in 15.2.