- Run
npm installto install all dependencies - Run
node tools/copy-webviewer-files.jsto copy the webviewer files to 'src/assets'
- Run
ng serveto start the dev server
When rotating a custom annotation in the PDFTron WebViewer, the rotation is not preserved correctly after exporting/downloading the PDF.
Inside the WebViewer, the annotation appears correctly rotated. However, after downloading the PDF, the annotation ends up with a random rotation, not matching either the original position or the rotation applied in the viewer.
The rotation logic was implemented exactly as instructed by PDFTron (Apryse) in their support ticket: https://support.apryse.com/support/tickets/129057
- Rotate a custom annotation in WebViewer → displays correctly
- Export or download the PDF
- The annotation in the exported PDF appears with a random rotation (not matching the intended rotation)
The rotation applied to a custom annotation in the WebViewer
should be preserved exactly and consistently in the downloaded PDF.
*The WebViewer logic can be found in src/webviewer/web-viewer.component.ts