cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Zoom Preview - Plugin Zoom Preview

gabri124
Champ in-the-making
Champ in-the-making
Hello I was looking for changing the default zoom of flash preview but I dont find anything to help me.
Then i was trying to modify attributes of plugin PDFJS preview to change its default scale
    
          The PdfJs <plugin> element supports the following attributes to further control the viewer
         
            * src="value"    Name of the thumbnail to display, which should be a PDF (default null, forces the cm:content property to be used)
            * skipbrowsertest="true|false"    Skipbrowser test, mostly for developer to force test loading (default "false")
            * mode="iframe|block" Display mode. "block" is the normal Share view, "iframe" uses the pdf.js viewer in an iframe (deprecated, default "block")
            * defaultScale="page-width|two-page-width|page-height|page-fit|two-page-fit|auto|value" Default zoom level for new documents, either a predefined string (for auto-calculation) or a decimal number between 0 and 1 (default "two-page-fit")
            * scaleDelta="value"   Multipler for zooming in/out, should be a decimal > 1 (default "1.1")
            * pageLayout="single|multi"   Layout to use to display pages, "single" (one page per row) or "multi" (multiple pages per row) (default "multi")
            * disableTextLayer="true|false"   Whether text overlays on pages should be disabled. Overlays allow users to select text content in their browser but reduce rendering performance (default "false")
            * useLocalStorage="true|false"   Whether to use HTML5 browser storage to persist the page number and zoom level of previously-viewed documents (default "true")

–>
      <condition mimeType="application/pdf">
         <plugin scaleDelta="1.3">PdfJs</plugin>
         <plugin>Embed</plugin>
      </condition>
         
But it doesnt work.

Anyone can help me to modify default zoom preview?

Thank's.
1 REPLY 1

anakin59490
Star Contributor
Star Contributor

Too late i suppose but for users like me who want to do the same thing :

web-preview-custom.get.config.xml :

<condition mimeType="application/pdf">
<plugin defaultScale="page-width" progressiveLoading="false">PdfJs</plugin>
</condition>