There's a bug in iOS 16 right now that causes an issue when printing anything but the first label / page of a document being printed.
I was originally using expo-print to implement PDF label printing in our app. I moved over to this library to try and skirt around the issue but ran into the same problem.
I've attached the patch that I'm running to fix this issue if anyone needs to work around this themselves.
I won't open a pull request because I've not got enough experience of the ecosystem to know if this is a good idea or not, but if anyone else reading this does, then I hope this gives you a head start.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Radar Issue: https://openradar.appspot.com/radar?id=5548908621070336
There's a bug in iOS 16 right now that causes an issue when printing anything but the first label / page of a document being printed.
I was originally using expo-print to implement PDF label printing in our app. I moved over to this library to try and skirt around the issue but ran into the same problem.
I've managed to work around this issue by implementing the logic suggested by @alexbeckwith https://github.com/expo/expo/issues/19399#issuecomment-1450982304 and the example from @JacopoOrlandini https://github.com/expo/expo/issues/19399#issuecomment-1456537548 *(tagging you to say thanks!), caching the printer to avoid needing to look up paper sizes again.
I've attached the patch that I'm running to fix this issue if anyone needs to work around this themselves.
I won't open a pull request because I've not got enough experience of the ecosystem to know if this is a good idea or not, but if anyone else reading this does, then I hope this gives you a head start.
I'll let stale bot close this issue automatically.