Giter Site home page Giter Site logo

hexo-pdf's Introduction

hexo-pdf

MIT VERSION

Hexo tag for embeded pdf

Install

$ npm install --save hexo-pdf

Usage

Normal PDF

{% pdf http://7xov2f.com1.z0.glb.clouddn.com/bash_freshman.pdf %}

or

{% pdf ./bash_freshman.pdf %}

Google drive

{% pdf https://drive.google.com/file/d/0B6qSwdwPxPRdTEliX0dhQ2JfUEU/preview %}

Slideshare

{% pdf http://www.slideshare.net/slideshow/embed_code/key/8Jl0hUt2OKUOOE %}

Preview

Normal PDF

Google drive

Slideshare

hexo-pdf's People

Contributors

butlerx avatar superalsrk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hexo-pdf's Issues

display local pdf

If the pdf file lies in a folder, it can't be displayed correctly.
For example, {% pdf ./Linear/Linear01.pdf %}

Can't load in index page

I had main.md and main/main.pdf in source/_posts/. I wrote
{% pdf main.pdf %}
in main.md, it works when I read this article but can't load pdf in index page.

Chrome console shows
GET https://xxxxxxx/main.pdf net::ERR_ABORTED 404
maybe it should date or something else like
https://xxxxxxx/2019/03/28/title/main/main.pdf

PDF at Github

Hi,

I tried to add these, but no luck. Is this possible :

{% pdf https://raw.githubusercontent.com/huseyinkozan/cv/master/huseyinkozan.pdf %}
{% pdf https://github.com/huseyinkozan/cv/raw/master/huseyinkozan.pdf %}
{% pdf https://raw.github.com/huseyinkozan/cv/master/huseyinkozan.pdf %}

PDF download automatically

When I installed it successfully, the local preview displayed normally, but when I deployed to Github, I was prompted to download the PDF as soon as I opened the page.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.