Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design How to resize the pdf object font size while resizing the window?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #246957
    stsroja
    Participant

    Hi,
    I have done the code for pdf file resizing while window resize.
    But font size is not resizing
    Can anyone say that how can i resize the font size of pdf while resize the window

    #246964
    Beverleyh
    Participant

    It isn’t clear what you’re doing. Is the doc embedded in an iframe src?

    As far as I’m aware, you can’t change the font-size of a PDF – the formatting is preserved as a snapshot of the document when it was created. If you want to change the font-size, you would need to edit the document and then convert to PDF again.

    But to clarify, please post a link to a demo so that we can see what you’re attempting to do more easily.

    #247002
    stsroja
    Participant

    <!DOCTYPE html>
    <!–
    To change this license header, choose License Headers in Project Properties.
    To change this template file, choose Tools | Templates
    and open the template in the editor.
    –>
    <html>
    <head>
    <title>

    Login Page

    </title>
    <style>

        body {
    overflow:hidden;
    

    }
    </style>

    &lt;script&gt;
    
    
    $(document).ready(function() {
    $(window).trigger('resize');
    

    });

    $(window).resize(function() {

    var browser_viewportH = $(window).height();
    var browser_viewportW = $(window).width();
    
    var nav_height = $("#nav-bar").height() + $("#tempWrapper").height();
    var block_height = $("#blockContainer").height();
    
    var viewportH = browser_viewportH - (nav_height + block_height);
    
    $("#readFrame").css("height", viewportH);
    

    });
    </script>

    <script type=”text/javascript”>
    $(“#readFrame”).css({width: $(window).width()});
    </script>

    </head>
    <body >

    &lt;br/&gt;
    
        &lt;iframe id="readFrame" src="page.htm" style="width:100%;"&gt;&lt;/iframe&gt;
    

    </body>
    </html>

    #247003
    stsroja
    Participant

    i do this in this way

    #247009
    Beverleyh
    Participant

    So how does the PDF play in to it?

    Please provide an actual working demo to clarify the issue.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design’ is closed to new topics and replies.