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

Add Option to Customize PDF Display Settings During Import #292

Open
AltoRetrato opened this issue Aug 27, 2024 · 0 comments
Open

Add Option to Customize PDF Display Settings During Import #292

AltoRetrato opened this issue Aug 27, 2024 · 0 comments

Comments

@AltoRetrato
Copy link

AltoRetrato commented Aug 27, 2024

Notes with many PDF files can become very unresponsive. In Evernote, you can choose whether a PDF file is shown as "Title" (aka "attachment"), which is equivalent to showing only the PDF title as a link in Obsidian; "Single page" (aka "pdf-pageByPage"); or "All pages" (aka "pdf-full"), with the last two being equivalent to showing a preview of the file. Currently, this information is not utilized during importing, so imported notes with PDFs have all them with preview enabled. This might break formatting (especially in tables) and cause performance issues on notes with many PDFs, requiring a lot of manual editing by users to fix. I'd suggest:

  1. Ask the user if they want all PDFs (and possibly other types of documents) to appear as a links (e.g., [[path/to/test.pdf|test.pdf]]), as a preview (![[path/to/test.pdf|test.pdf]]), or, in the case of Evernote, as set in the .enex file.

For reference, the PDF display setting appears in .enex files like this:

<en-media style="--en-viewAs:attachment;" hash="..." type="application/pdf" />
<en-media style="--en-viewAs:pdf-pageByPage;" hash="..." type="application/pdf" />
<en-media style="--en-viewAs:pdf-full;" hash="..." type="application/pdf" />
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

1 participant