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

Error with several embeds on one page #34

Open
Sinled opened this issue Sep 4, 2022 · 3 comments
Open

Error with several embeds on one page #34

Sinled opened this issue Sep 4, 2022 · 3 comments

Comments

@Sinled
Copy link

Sinled commented Sep 4, 2022

It seems there are some problems with rendering

plugin:better-pdf-plugin:1788 Uncaught (in promise) Error: Invalid canvas size
    at DOMCanvasFactory.create (plugin:better-pdf-plugin:1788:13)
    at CachedCanvases.getCanvas (plugin:better-pdf-plugin:5252:40)
    at CanvasGraphics.beginDrawing (plugin:better-pdf-plugin:5959:53)
    at InternalRenderTask.initializeGraphics (plugin:better-pdf-plugin:4277:14)
    at eval (plugin:better-pdf-plugin:2734:26)

Whey you have several blocks pointing to the same pdf file on one page

@MSzturc
Copy link
Owner

MSzturc commented Sep 4, 2022

Please provide me some sample code

@Sinled
Copy link
Author

Sinled commented Sep 5, 2022

Something like this, in one obsidian note

## Some Page

```pdf
{
  "url": [[File.pdf]],
  "range": [123, 126],
  "fit": true,
  "scale": 2
}
```

## Another Page

```pdf
{
  "url": [[File.pdf]],
  "range": [126, 127],
  "fit": true,
  "scale": 2
}
```

Sometimes it renders one of the blocks, sometimes - none

@giusgad
Copy link

giusgad commented Oct 25, 2022

I have the same issue, with multiple code blocks on the same page usually only the first one loads (or none).
The blocks that do not render can be fixed by placing the cursor inside them and moving it out again, but doing that every single time gets tedious.

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

3 participants