How to open pdf with specific page in File Document viewer or pdf viewer

0
Hello all, I have created one page where showing pdf in mendix screen which is downloaded from server and after that creating pdf object in mendix to pass in file document viewer or pdf viewer. I am able to achieve that but requirement is to open pdf with specific page in mendix screen which i have in my pdf link url. Please suggest how we can achieve this using File document viewer or Pdf viewer or TOF pdf document viewer, here don't see any option to pass page number in widgets.
asked
2 answers
1

Hi Raju , 

 

I have an idea to implement this 

 

You have your PDF URL look like below 

 

................./AA330524079893V_RC05062024.pdf#page=2

 

here you can have pass your page number in the URL 

 

Then use iframe widget in mendix page to load the URL and iframe widget will help you to load the file 

 

I have tried in sample project and it worked very well see the below image , 

 

image.png

This is the original URL 

https://www.sldttc.org/allpdf/21583473018.pdf

 

This is the URL I have passed to the iframe widget 

 

https://www.sldttc.org/allpdf/21583473018.pdf#page=2

 

The output is the file started showing from second page 

 

image.png

answered
0

Hi Raju , 

I have did the following configuration and it worked well. Try this once

Please set the widget of iframe component to 950px and height to 500px 

image.png

And set the width of your page to 1000px and height to 700px if incase it is a popup page. Fix your page width and height according to your need

 

image.png

answered