- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘Design’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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
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.
<!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>
<script>
$(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 >
<br/>
<iframe id="readFrame" src="page.htm" style="width:100%;"></iframe>
</body>
</html>
i do this in this way
So how does the PDF play in to it?
Please provide an actual working demo to clarify the issue.