10

Using IcePdf (ver 1.8) i integrate a SwingController into my JPanel to use it in my application. Since the page displayed into the SwingController is in a specific position into the controller. How can i obtain the coordinate of the page (top left corner for example, o bottom left if using PDF coordinate) relative to the whole SwingController so i can obtain the Page coordinate relative to the JPanel ?

I searched deep in the API of IcePDf but i cannot figure out how to do this. Thanks.

Razlo3p
  • 455
  • 2
  • 7
  • 28

1 Answers1

0

Try this

swingController.getDocumentViewController()
               .getDocumentView().getViewModel().getPageBounds(0).getLocation();
Z.John
  • 111
  • 1
  • 6