Coder Social home page Coder Social logo

obsidian-better-pdf-2-plugin's Introduction

Obsidian Better PDF 2 Plugin

Goal of this Plugin in to implement a native PDF handling workflow in Obsidian This version 2 was created as the original Obsidian Better PDF Plugin was not updated anymore.

Features

  • Insert a single PDF Page inside Note
  • Insert a list or range of pages into Obsidian Note
  • Hyperlink to PDF
  • Scale the size of PDF Pages to fit Note layout
  • Rotate PDF
  • Cutout PDF Parts

Demo

Sample

Syntax

as json string or yaml:

parameter required example
url yes myPDF.pdf or subfolder/myPDF.pdf or "[[MyFile.pdf]]"
link optional (default = false) true or false
page optional (default = 1) 1 or [1, [3, 6], 8] where [3, 6] is an inclusive range of pages. page = 0 is an alias for the whole document
range optional [1, 3] Insert pages 1 to 3 (inclusive). Overwrites page.
scale optional (default = 1.0) 0.5 for 50% size or 2.0 for 200% size
fit optional (default = true) true or false
rotation optional (default = 0) 90 for 90deg or -90 -90deg or 180
rect optional (default = [0,0,0,0]) offsetX, offsetY, sizeY, sizeX in Pixel

Example json (from the original Better PDF plugin)

```pdf
{
  "url" : "[[My_pdf.pdf]]",
  "page": 1
}
```

Example yaml (new syntax)

```pdf
url: [[My_pdf.pdf]]
page: 1
```

Integration

Donate

Buy Me a Coffee at ko-fi.com

obsidian-better-pdf-2-plugin's People

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

Watchers

 avatar

obsidian-better-pdf-2-plugin's Issues

Bug with embedded PDF zooming out

Has anyone got such a bug when certain embedded PDF files in preview and edit modes automatically zooming out and slowly resizing until the very minimum?

Click on "Zoom in" button stops this weird process but it starts each time when I open the note again.

Update: Sorry, this seems to be issue of Obsidian itself, it;'s not related to your plugin. I confused natively linked pdf-file in a group of embeded documents with pdfs inserted with "better pdf 2 plugin". You may delete this thread now.

Export to PDF doesn't show embedded pdf

When exporting a Note as PDF containing a pdf embedded with a code block, the block is skipped and the embedded pdf does not show up in the resulting exported pdf.

Here you can see obsidian shows the pdf correcly
image

Here is the code block defining what to show
image

But the exported pdf just skips over the pdf part
image

Install problems

Hi! After downloading and unzipping to the Obsidian plugins folder, when I click "Refresh," the plugin shows up in my Obsidian plugins page, but when I try to turn it on, I get the message "the plugin failed to load." Is there something special that I need to do to get it to run? My apologies if this is a silly question!

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.