Set Zoom for PDF Popup

Greetings,

I’m using Pega 8.5 button click event/action to generate URL in Window, of a PDF in Chrome browser, however 100% zoom does not fill the page. What solution is there to have the PDF pop up to fill the window automatically?

If user manually zooms it’s 197% to fill window. What does pega have to pass along the view or zoom parameter so that it auto populates to that parameter value?

Thanks

-Joe

@JoeJ2382 I’m also having a similar issue, when opening PDF it is opening using setting ‘Fit One Full Page’ which is causing 2 issues:

  • PDF not readable as font size looks so small. Hence, Users have to unnecessary click to increase Zoom Setting
  • As Page Layout Style is ‘Fit One Full Page’, when they scroll past end of a page, system automatically moves next page to the top. As a result, if you want to look at some text which is present at the end of page n and start of page n+1 at the same time; then you cannot do that. Users will have to change setting manually each time to ‘Fit to Width Scrolling’ to allow continuous flow of pages

Is there some PDF file property which could be set during PDF generation which would set default Page Layout Style and Zoom Setting on PDF file?

@MRIDULKUMAR were you able to find the solution for read mode and zoom setting?

@JoeJ2382

Using “View = fitH” in the URL from an “Open URL in Window” worked for me. You might want to test to see if it can apply your case.

In tha action tab of the pdf pop up button I chose an Event/Action.
For the first event upon the click action I chose a “Run Data Transform” to populate a property to hold URL which was a version of the following

pxRequestor.pxReqURI+“?pyActivity=Pega-Ins-Claims-MyApp-Work.GeneratePDFActivity”+“&/#view=fitH”

For the second event I used “Open URL in Window”, placed a checkmark next to Use Alternate Domain, and put in the property name that I set in the data transform next to “Alternate Domain URL”, then set the width and height of the pop up where when it comes up, the PDF fills the entire box. Hope this helps.

@JoeJ2382 can you please post the screenshot of the pop up and implementation? So you are not going with the zoom approach, you are filling the opened pdf with full screen.

@Anoop Krishna It is zoomed but the zoomed value is automatically set to fit the screen instead of providing the value.

Here are before and after and implementation example. The source in the DT is similar to what was in the previous post.