• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotating annotations.
#2
I might think about it at some point in the future, but adding support for rotating annotations adds a huge layer of complexity when the annotations need to be written out to the PDF itself. The PDF specification does not support rotating annotations at all. So with text annotations, for example, they would have to be embedded as rotated images of the text. All of the coordinate calculations would get incredibly complex with handling a partially rotated annotation, as each time I would need to do calculations involving touch events, I would have to rotate every point by the rotation factor before doing the calculations, and it would be likely to introduce bugs. So unless there is a very high demand for this, it's not something I'm going to focus on for a long time.

With PDF deskewing, I'm just going to rebuild the entire PDF from rotated images. That was never the complex part - the issue was always with creating optimized PDFs after doing that, as the PDF library I've used doesn't support optimizations. I have access to a different library now though (the same one used for the camera functionality on Android and iOS) that can produce optimized PDFs, so my goal is to try to utilize that instead to rebuild the PDF.

Mike
Reply


Messages In This Thread
Rotating annotations. - by Lawrie - 03-06-2025, 02:18 AM
RE: Rotating annotations. - by Zubersoft - 03-06-2025, 05:08 AM
RE: Rotating annotations. - by Lawrie - 03-06-2025, 09:05 AM
RE: Rotating annotations. - by Zubersoft - 03-06-2025, 10:16 AM
RE: Rotating annotations. - by Lawrie - 03-06-2025, 02:21 PM



Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2025 MyBB Group.