Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to adjust the size of PDF? #7

Open
GQH123 opened this issue Jul 24, 2017 · 7 comments
Open

How to adjust the size of PDF? #7

GQH123 opened this issue Jul 24, 2017 · 7 comments

Comments

@GQH123
Copy link

GQH123 commented Jul 24, 2017

As the title says

@GQH123
Copy link
Author

GQH123 commented Jul 24, 2017

Have solved.

@Wanguy
Copy link

Wanguy commented Oct 12, 2017

may I ask you how do you do

@iwvwi
Copy link

iwvwi commented Dec 5, 2018

How can it display full screen ? After click magnify button it can't display full screen !
Does it adjustment in somewhere configuration file ?

@fuhailin
Copy link

How do you solve that? Could you post a solution to help more people?

@NIRVANALAN
Copy link

anybody solved this problem? just height, not width..

@faultaddr
Copy link

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.
DeepinScreenshot_select-area_20191225152043

Please don't thank me,just remember I am LeiFeng from China and I am the socialist successor on earth.

@jarvie-mei
Copy link

socialist successor lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants