This is a migrated thread and some comments may be shown as answers.

Pdf Annotations on rotated pages look incorrect

4 Answers 49 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Veteran
Vladimir asked on 12 Oct 2020, 12:29 PM

Hello, again!

 

If pdf annotations on rotated pages have the flag /Rotate with the same angle as page angle, they will be displayed wrong.

 

I attached file with this trouble:   http://u.pc.cd/A71rtalK

And 2 screens: Correct.png and Incorrect.png

Annotation "Test2" looks incorrectly

 

Reason for this may be the using 'apprearance stream', which is trying to rotate on an already rotated page. But I am not sure.

4 Answers, 1 is accepted

Sort by
0
Vladimir
Top achievements
Rank 1
Veteran
answered on 13 Oct 2020, 12:30 PM

Solution of this - just updating from '2020.2.617' to '2020.3.915'.

After updating to the '2020.3.915' I saw correct annotations on every page.

0
Martin
Telerik team
answered on 13 Oct 2020, 03:46 PM

Hi Vladimir,

I am happy that updating the assemblies' version solves your case.

The reason behind this is that with the 2020 R3 Release we introduced a new document model for the PdfViewer, a unified one (between PdfProcessing and PdfViewer document models). For more information, you can check the Unifying the Power of PdfViewer & PdfProcessing: Edit a PDF with our Newest Secret blog post.

Regards,
Martin
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

0
Vladimir
Top achievements
Rank 1
Veteran
answered on 14 Oct 2020, 11:37 AM

Hi Martin,

Thank you for the link to the article. I got it and found the most useful thing for me - these are UILayers and method InvalidatePageUI. UI layers we have already done by ourself, and I was trying to implement similar method as InvalidatePageUi with old model by myself, but it was looked awful. Now we can solve and our other tasks.

Regards, Vladimir

0
Martin
Telerik team
answered on 15 Oct 2020, 06:40 AM

Hi Vladimir,

I am happy you find the positives of merging the models.

If you need any further assistance, please let us know.

Regards,
Martin
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
PDFViewer
Asked by
Vladimir
Top achievements
Rank 1
Veteran
Answers by
Vladimir
Top achievements
Rank 1
Veteran
Martin
Telerik team
Share this question
or