How to adjust the size of PDF?
GQH123 opened this issue · 7 comments
GQH123 commented
As the title says
GQH123 commented
Have solved.
Wanguy commented
may I ask you how do you do
iwvwi commented
How can it display full screen ? After click magnify button it can't display full screen !
Does it adjustment in somewhere configuration file ?
fuhailin commented
How do you solve that? Could you post a solution to help more people?
NIRVANALAN commented
anybody solved this problem? just height, not width..
faultaddr commented
That's a good question! QAQ
when u npm install the hexo-pdf, u will find the node_modules/hexo-pdf in your dir.
cd node_modules/hexo-pdf &&vim reader.ejs
change the reader.ejs like that:
<% if(type == 'normal') { %>
<div class="row">
<embed src="<%= src %>" width="100%" height="1200" type="application/pdf">
</div>
<% } else if (type == 'googledoc'){ %>
<div class="row">
<iframe src="<%= src %>" style="width:100%; height:1200px"></iframe>
</div>
<% } else if(type == 'slideshare') { %>
<iframe src="<%= src %>" style="width:100%;height:1200px" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe> <div style="margin-bottom:5px">
<% } %>
just change the height or width as u want, clean the generated files and re-generate than restart, finally u would find it works.The result is as follow.
Please don't thank me,just remember I am LeiFeng from China and I am the socialist successor on earth.
jarvie-mei commented
socialist successor lol