Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MSzturc/obsidian-better-pdf-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.1
Choose a base ref
...
head repository: MSzturc/obsidian-better-pdf-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 917 additions and 207 deletions.
  1. +2 −0 .github/FUNDING.yml
  2. +33 −26 README.md
  3. +193 −162 main.ts
  4. +2 −2 manifest.json
  5. +5 −13 package.json
  6. +43 −0 settings.ts
  7. +5 −0 styles.css
  8. +5 −4 versions.json
  9. +629 −0 yarn.lock
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These are supported funding model platforms
github: MSzturc
59 changes: 33 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
## Obsidian Better PDF Plugin

Goal of this Plugin in to implement a native PDF handling workflow in Obsidian

### Features

- Insert a single PDF Page inside Note
- Insert a List 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](sample/BetterPDF.gif)

### Synthax

|parameter|required|example|
|--|--|--|
|url |yes |**myPDF.pdf** or **subfolder/myPDF.pdf** or "[[MyFile.pdf]]"
|page|optional (default = 1)| **1** or **[1,6,7,8]**
|scale|optional (default = 1.0)| **0.5** for 50% size or **2.0** for 200% size
|rotation|optional (default = 0)| **90** for 90deg or **-90** -90deg or **180**
|rect|optional (default = \[0,0,0,0\])| offsetX, offsetY, sizeX, sizeX in Pixel
## Obsidian Better PDF Plugin

Goal of this Plugin in to implement a native PDF handling workflow in Obsidian

### 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](https://github.com/MSzturc/obsidian-better-pdf-plugin/raw/master/sample/BetterPDF.gif)

### Syntax

|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


### Integration
- [JavaScript for Adobe Acrobat Pro and AppleScript for Skim for creating automatically the necessary Better PDF Plugin snippet](https://github.com/johnsidi/scripts-for-Obsidian-Better-PDF-Plugin)
Loading