Excalidraw-Obsidian 2.0.19: PDF Cropping

Zsolt's Visual Personal Knowledge Management
2 Feb 202410:08

Summary

TLDRIn diesem Video zeigt Jol, wie man in Obsidian Bilder aus PDF-Dokumenten abruft und in seine Notizen integriert. Er erweitert die Funktionen von Excalidraw, um PDFs zu unterstützen, was es ermöglicht, Bilder direkt aus dem Dokument herauszuschneiden und sie mit einer Verknüpfung zum Original zu pflegen. Zusätzlich wird gezeigt, wie man mit Markdown-Notizen und Excalidraw arbeitet, um die Seite direkt zu öffnen und Bilder zu schneiden. Es werden auch Tipps für die Anpassung des Hintergrunds und die Erstellung eigener CSS-Klassen gegeben, um die Lesbarkeit zu verbessern. Schließlich wird eine neue Funktion vorgestellt, die es ermöglicht, die Ecken von Bildern abzurunden.

Takeaways

  • 📄 In Obsidian, capturing an image from a PDF and retaining its source link can be challenging.
  • 🖼️ Durch die Erweiterung der Excalidraw-Funktion können Bilder aus PDF-Dokumenten gecroppt werden, ohne den Ursprungslink zu verlieren.
  • ✂️ Die Bildbeschneidefunktion in Excalidraw ermöglicht es, genau die gewünschte Bildgröße zu erreichen.
  • 🔍 Zusätzliche Funktionen wie das Maskieren von Bildteilen werden in Excalidraw unterstützt.
  • 🔗 Doppelklick auf ein gecropptes Bild öffnet das PDF an der Seite, von der das Bild stammt.
  • 📝 In Markdown-Notizen kann man die Seite eines PDF-Dokuments mithilfe von Seitennummern referenzieren.
  • 🖌️ Die Bildbeschneidefunktion kann auch auf PDF-Seiten in Markdown-Notizen angewendet werden, wobei der Link zur Originalquelle erhalten bleibt.
  • 📘 Kopieren und Einfügen eines Abschnittslinks aus einem PDF-Reader in ein Markdown-Dokument ermöglicht die präzise Auswahl und Bearbeitung von PDF-Inhalten.
  • 🎨 In Excalidraw kann man PDF-Dokumente einbetten und aus diesen auswahlweise bestimmte Bereiche beschneiden.
  • 🛠️ Neue Einstellungen in Excalidraw ermöglichen es, den Speicherort der gecroppten Bilder und das Präfix für Dateinamen zu definieren.
  • 🖼️ Excalidraw bietet jetzt auch die Möglichkeit, Ecken von Bildern abgerundet darzustellen.

Q & A

  • Wie kann man ein Bild aus einem PDF-Dokument in Obsidian erfassen?

    -Man kann das Bild durch Bildschirmkopie erfassen, es einfügen und dann mit einem Namen versehen, um es mit der Quelle zu verbinden.

  • Was ist das Hauptproblem mit der Bildschirmkopie-Methode?

    -Das Hauptproblem ist, dass das Bild seine Verbindung zur ursprünglichen Quelle verliert.

  • Wie wurde das Problem der Bildquelle in der Excalidraw-Erweiterung gelöst?

    -Die Excalidraw-Erweiterung wurde so erweitert, dass sie PDF-Dokumente unterstützt und eine Beziehung zum Originalquellort beibehalten kann.

  • Wie öffnet man den Bildbeschneider in Excalidraw?

    -Man drückt Strg oder Command + P und tippt 'crop' ein, um den Bildbeschneider zu öffnen.

  • Was sind zusätzliche Funktionen des Bildbeschneidens in Excalidraw?

    -Es ist möglich, Teile des Bildes auszublenden, indem man die Maskierungsfunktion verwendet.

  • Wie kann man in einer Markdown-Notiz auf eine bestimmte Seite eines PDF-Dokuments verweisen?

    -Man kann eine Verknüpfung zur Seite erstellen, indem man '#page=X' hinzufügt, wobei X die Seitennummer ist.

  • Was passiert, wenn man auf das gecroppte Bild in Obsidian doppelklickt?

    -Man kann entweder den Bildbeschneider öffnen, um das Bild zu ändern, oder die ursprüngliche Datei an der Quelle öffnen.

  • Wie kann man einen Link zu einem Abschnitt eines PDF-Dokuments in Obsidian hinzufügen?

    -Man kann einen Teil des Textes aus dem PDF-Reader kopieren und als Link zur Sektion einfügen.

  • Wie kann man die Hintergrundfarbe eines gecroppten PDF-Bildes in Obsidian ändern?

    -Man kann die CSS-Klassen im Eigenschaften-Panel ändern, um die Hintergrundfarbe des Bildes anzupassen.

  • Was sind die neuen Einstellungen für das Bildbeschneiden in Excalidraw?

    -Man kann einen Ordner für die gespeicherten Cropping-Dateien festlegen und einen Präfix für die Dateinamen der Cropping-Dateien hinzufügen.

  • Was ist die neue Funktion in dieser Version von Excalidraw für Bilder?

    -Man kann jetzt die Ecken von Bildern abrunden, indem man im Eigenschaften-Panel 'abgerundete Ecken' aktiviert.

Outlines

00:00

📚 Verbesserte PDF-Bildauswahl in Obsidian

Der erste Absatz beschreibt ein Problem, das beim Kopieren von Bildern aus PDF-Dokumenten in Obsidian auftritt: Die Bilder verlieren ihre Verbindung zum Originalquell. Um dies zu lösen, wurde die Funktion 'Bild zuschneiden' von Excalidraw auf PDF-Dokumente erweitert. Der Benutzer kann nun ein Bild auswählen, es zuschneiden und direkt in Obsidian einfügen, wobei es immer eine Verbindung zum Ursprungsdokument beibehält. Der Absatz zeigt, wie man die Bildausschnittfunktion in Canvas und Markdown-Notizen verwendet und wie man die Originalposition des Bildes durch Doppelklicken auf das Bild öffnet.

05:00

🖼️ Anpassung von Hintergrundfarben und CSS-Klassen für PDF-Seiten

Der zweite Absatz konzentriert sich auf die Anpassung von Hintergrundfarben und CSS-Klassen für PDF-Seitenbilder in Obsidian. Es wird gezeigt, wie man die Lesbarkeit von Texten verbessert, indem man die Hintergrundfarbe ändert, und wie man benutzerdefinierte CSS-Klassen erstellt, um die Darstellung von PDF-Seitenbildern anzupassen. Des Weiteren werden neue Einstellungen für das Zuschneiden von Bildern und die Möglichkeit, runde Ecken für Bilder zu erstellen, vorgestellt.

10:03

🔧 Neue Funktionen und Einstellungen in Excalidraw für Obsidian

Der dritte Absatz präsentiert weitere Funktionen und Einstellungen in Excalidraw für Obsidian. Es wird erklärt, wie man die Zuschnitte von Bildern in einem bestimmten Ordner speichern kann und wie man Präfixe für die Dateinamen der Zuschnitte hinzufügt. Darüber hinaus wird eine neue Funktion vorgestellt, die es ermöglicht, die Ecken von Bildern abzurunden, was die visuelle Anpassung von Bildern in Obsidian erweitert.

Mindmap

Keywords

💡PDF-Dokument

Ein PDF-Dokument ist eine Datei, die zum Speichern von Dokumenten verwendet wird und von Adobe Systems entwickelt wurde. Im Video wird gezeigt, wie man ein Bild aus einem PDF-Dokument in Obsidian abruft. Dies ist relevant, da PDF-Dokumente häufig in der digitalen Dokumentverwaltung verwendet werden und das Skript die Verwendung von Obsidian zum Arbeiten mit solchen Dokumenten erläutert.

💡Bildausschnitt

Der Begriff 'Bildausschnitt' bezieht sich auf das Verfahren, ein Bild zu beschneiden oder zuzuschneiden, um nur den gewünschten Teil des Bildes zu zeigen. Im Video wird beschrieben, wie man mithilfe von Exol Draw Bilder aus PDF-Dokumenten ausschneiden kann, um sie für Notizen zu verwenden, ohne die Verbindung zum Originalverzeichnis zu verlieren.

💡Exol Draw

Exol Draw ist ein Tool, das in Obsidian integriert ist und es Benutzern ermöglicht, Bilder und PDF-Seiten zu bearbeiten und zu organisieren. Im Video wird gezeigt, wie man Exol Draw nutzt, um Bilder aus PDF-Dokumenten zu schneiden und sie mit ihren Quellen zu verknüpfen, was für die Organisation und Verwaltung von Informationen in Obsidian sehr nützlich ist.

💡Markdown-Notiz

Eine Markdown-Notiz ist eine Art von Textdatei, die spezielle Syntax verwendet, um Text zu formatieren, ohne dass HTML oder andere komplexe Markup-Sprachen erforderlich sind. Im Video wird erklärt, wie man eine Markdown-Notiz erstellt und wie man mit Exol Draw Bilder und PDF-Seiten in diese Notizen einbindet.

💡Bildverknüpfung

Eine Bildverknüpfung ist ein Verweis auf die Quelle eines Bildes. Im Kontext des Videos bedeutet dies, dass wenn ein Bild aus einem PDF-Dokument in Obsidian eingefügt wird, es weiterhin eine Verbindung zu der Seite im PDF hat, von der es stammt. Dies ermöglicht es Benutzern, leicht auf die Originalquelle zurückzuverfolgen.

💡Canvas-Knoten

Ein Canvas-Knoten ist ein Begriff, der in Obsidian verwendet wird und sich auf eine Art von Arbeitsbereich oder eine Seite bezieht, auf der man verschiedene Inhalte organisieren kann. Im Video wird gezeigt, wie man Bilder aus PDF-Dokumenten in einen Canvas-Knoten aufnimmt und wie man diese Bilder bearbeiten kann.

💡Bildbearbeitung

Bildbearbeitung ist der Prozess des Änderns oder Anpassens von Bildern. Im Video wird Exol Draw als Werkzeug zur Bildbearbeitung vorgestellt, das es Benutzern ermöglicht, Bilder aus PDF-Dokumenten zu schneiden und sie an ihre Bedürfnisse anzupassen.

💡CSS-Klasse

CSS-Klassen sind in der Webentwicklung verwendet, um Stilregeln für HTML-Elemente zu definieren. Im Video wird erklärt, wie man CSS-Klassen verwendet, um das Erscheinungsbild von Bildern in Obsidian anzupassen, beispielsweise indem man die Hintergrundfarbe von PDF-Seiten ändert.

💡Eigenschaftenpanel

Das Eigenschaftenpanel ist ein Werkzeug in Obsidian, das es Benutzern ermöglicht, verschiedene Einstellungen für Elemente wie Bilder zu ändern. Im Video wird gezeigt, wie man das Eigenschaftenpanel verwendet, um die Hintergrundfarbe von PDF-Seitenbildern zu ändern oder CSS-Klassen anzupassen.

💡Abgerundete Ecken

Abgerundete Ecken sind eine visuelle Eigenschaft von Bildern oder Rahmen, bei der die Ecken nicht scharf, sondern geschwungen sind. Im Video wird eine neue Funktion von Exol Draw vorgestellt, die es ermöglicht, Bilder mit abgerundeten Ecken zu erstellen, was das Design der Bilder in Obsidian anpassen kann.

Highlights

使用屏幕截图工具捕获PDF中的图像并粘贴到Obsidian中,但这种方法会失去与原始来源的连接。

通过命名约定可以间接引用图像的原始来源,但这不是最佳解决方案。

扩展了Excalidraw的图像裁剪功能以支持PDF文档。

在Canvas中,通过按Control或Command P并输入'crop'来打开图像裁剪工具。

裁剪工具允许调整图像大小并保留与原始PDF页面的链接。

双击图像可以打开裁剪工具或返回到PDF的原始位置。

在Markdown笔记中,通过添加'#'后跟页面号,可以直接打开PDF的特定页面。

在PDF阅读器中选择文本并复制链接到部分,然后在Markdown文档中添加该链接,可以实现对特定PDF部分的裁剪。

PDF文档中的透明背景可能会影响可读性,可以通过更改背景颜色来解决。

可以通过定义CSS类来自定义PDF页面的颜色背景。

在Excalidraw中嵌入PDF文档,可以滚动到特定部分并进行裁剪。

裁剪后的图像在Excalidraw中会自动更新。

新增设置允许指定裁剪文件的存储文件夹。

可以为裁剪文件添加前缀,以便更好地组织和管理。

新功能允许对图像的角落进行圆角处理。

裁剪功能非常强大,可以裁剪和遮罩图像,PDF页面保留对原始来源的链接。

自从实现这个功能以来,作者发现它在许多情况下都非常有用。

Transcripts

play00:00

hey everyone jol here so when you're

play00:02

reading a PDF document in obsidian what

play00:06

do you do when there's an image that you

play00:08

want to capture for your noes well what

play00:11

I do is I start the screen capture tool

play00:14

I select the image and then I press

play00:16

paste and I have my image

play00:19

here this solution is only sort of good

play00:23

the main problem with this solution is

play00:26

that this image has now lost its

play00:29

connection to it original source of

play00:31

course I can use a naming convention I

play00:35

can give this image a name and with that

play00:38

I can reference back to the source but

play00:40

it is not really such a good

play00:43

solution so I've extended the exol draw

play00:47

image cropping feature to support PDF

play00:50

documents this is how it works so for

play00:54

example now I'm on canvas but I'm going

play00:56

to show you the same VI an obsidian an

play01:00

markdown note and with exol draw as well

play01:04

so here I'm now in a canvas node and I'm

play01:08

reading this PDF document I'm on this

play01:11

active page and I want to capture this

play01:13

image so all I need to do is press

play01:16

control or command p and type in crop

play01:20

and with this the image Cropper opens

play01:23

and I can just simply drag from the top

play01:27

and drag from the bottom I can also ra

play01:30

from the side to make this image exactly

play01:33

the size I want and with that I have the

play01:36

cropped image here now if you're

play01:38

interested the Cropper has additional

play01:40

features so I recommend you watch my

play01:43

other video on cropping for example I

play01:45

can mask out parts of the image but

play01:49

we'll talk about that in the other video

play01:52

what I want to show you now is the big

play01:55

difference here is when I double click

play01:57

on this image then this menu opens and

play02:01

here I can choose to either open the

play02:03

Cropper so I can change the cropping of

play02:06

this image or I can open the original

play02:10

location of the file so when I click

play02:13

here then my PDF opens on the page from

play02:17

which I cropped the image now let me

play02:20

show you how this feature Works in a

play02:23

markdown note so let's create a new

play02:27

markdown note and I'm just going to add

play02:30

how to read a paragraph here so what

play02:34

doesn't work is if I read a document

play02:37

here I don't know which page you're on

play02:40

so that unfortunately doesn't work what

play02:43

does work is when you're on a page you

play02:45

can add hash page equals for example 9

play02:50

and with this the PDF document opens on

play02:54

page nine so you can see the page number

play02:57

right there that's the page number now

play02:59

if I stand with the cursor on this line

play03:02

so this line is the active line I can

play03:05

again open the command pallet and choose

play03:08

crop and mask image and it will take

play03:12

this page and open it in the Cropper now

play03:15

in the Cropper I can again just simply

play03:18

do my cropping like this and when I'm

play03:22

done then getting back to my document

play03:25

you can see that it's now the image and

play03:28

the image even has a link reference at

play03:31

the bottom but of course if I double

play03:33

click on the image then I can still open

play03:37

the original file as well just as in

play03:40

case of

play03:42

canvas now to show you maybe a better

play03:45

way of achieving this the way I would do

play03:48

this is I would read a PDF document in

play03:52

the PDF reader like here and when I get

play03:55

to a page where I have an image that I

play03:58

want to capture I would simply select a

play04:02

part of the text from this page so I'm

play04:04

now in the PDF reader I select a part of

play04:07

the page and I copy a link to the

play04:11

section like this and then I head back

play04:14

to my markdown document and I simply add

play04:17

this link to the section and after

play04:20

adding the link to the section I can

play04:22

open the Cropper and it will open that

play04:26

section and again I can simply do my

play04:30

cropping so you will see that I can crop

play04:33

the image like this and like this now

play04:37

what you will also

play04:39

notice is this is hard to read or

play04:42

sometimes hard to read so some of the

play04:44

PDF documents have a transparent

play04:47

background and there are two things that

play04:50

it's good to know that you should know

play04:52

about this first of all if you find this

play04:55

hard to read you can always click here

play04:58

and change the background

play05:00

maybe to White and then the text will be

play05:03

visible very nicely the other thing I

play05:06

want to show you is here if I open the

play05:10

properties panel you will see that I

play05:13

have a special property here CSS classes

play05:18

excal draw crob PDF page so if I remove

play05:23

this then what you will see is when this

play05:26

image refreshes so I will need

play05:30

to change this and change it back then

play05:34

this image will not have a background

play05:36

color so you might or might not want

play05:38

this what I want to highlight is here

play05:42

you

play05:43

can create or Define your own CSS

play05:47

classes so if instead of white you want

play05:50

a yellow background or whatever other

play05:52

color for the page color of the PDF you

play05:56

can change the CSS classes here here the

play06:00

only thing is you need to refresh the

play06:03

link so the CSS class is applied when

play06:08

the image is

play06:10

embedded and then finally let me show

play06:13

you how this works in exol draw it works

play06:16

pretty similar to the previous ones so

play06:19

I'm going to add how to read a paragraph

play06:22

as an embeddable so now I have the how

play06:27

to read a paragraph document in embedded

play06:30

into exol draw I

play06:33

can oops I can click on this and I can

play06:37

scroll to the part that I want to crop

play06:40

so I'm here now if I press crop image

play06:45

then this page opens and everything

play06:47

works similar so I can just simply crop

play06:51

this page like this and when I'm done

play06:53

with cropping then I can turn back to

play06:57

xolor draw my image is going to get

play07:00

updated and here you go so I can now

play07:04

close this and I can navigate with this

play07:08

image there are two more small things

play07:12

that I want to show you regarding

play07:14

cropping and then there's one more thing

play07:17

I want to show you as a new feature in

play07:19

this version of excal obsidian so first

play07:23

about cropping there are two new

play07:25

settings that you can use setting number

play07:28

one is under basic here there's a crop

play07:34

file folder so the way exol draw crops

play07:37

an image is it creates an image Cropper

play07:42

so the image remains your PDF file

play07:45

remains your PDF file so the cropping

play07:48

will always read the PDF and create the

play07:52

crop out of that or the cropped image

play07:55

out of that but you might want to save

play07:58

the ex call it draw cropping file to a

play08:01

specified folder so if you set a folder

play08:04

here then the cropping file will go to

play08:07

that folder if not then the cropping

play08:10

file will follow your files and links

play08:14

settings so it's in my case it's going

play08:17

to go in a sub folder under the current

play08:20

folder called attachments so that's your

play08:23

option that you can define a dedicated

play08:27

folder for your crop files the other

play08:31

setting I added is under saving and file

play08:34

name and here you can add a prefix for

play08:39

the crop file I now have cropped but

play08:42

maybe you just want to add C or whatever

play08:46

if this is empty then cropped will be

play08:49

added or used so you can add an

play08:52

underscore if you want to leave this

play08:55

sort of empty that's another setting and

play08:59

then finally the new feature I wanted to

play09:01

show you is just a small new feature so

play09:04

I'm going to insert an

play09:08

image and I'm going to choose my lovely

play09:11

monkey here so the new feature is now

play09:14

you can round the corner of images so

play09:17

here in the properties I can click

play09:21

rounded corner and then the image will

play09:24

have a rounded corner so if you like

play09:27

rounded images now with an image you can

play09:31

easily achieve that so that's all I

play09:34

wanted to show you today I think this

play09:37

cropping feature is really powerful you

play09:41

can crop and mask images you can crop

play09:43

and mask PDF Pages PDF Pages retain

play09:47

their links to the original source and

play09:52

overall since I've implemented this

play09:55

feature I'm amazed at in how many cases

play09:58

I've used it this is such a cool feature

play10:02

I recommend you try it out and you play

play10:04

with it enjoy thank you

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
ObsidianPDF-ZuschneidenQuellenverweisExcalidrawMarkdownBildbearbeitungDateimanagementZuschnittwerkzeugDigitale NotizenCSS-Anpassung