Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Repeated SVG without re-rendering? #80

Open
urkoben opened this issue Jan 22, 2022 · 2 comments
Open

Repeated SVG without re-rendering? #80

urkoben opened this issue Jan 22, 2022 · 2 comments

Comments

@urkoben
Copy link

urkoben commented Jan 22, 2022

If I have to insert the same SVG image X times in a PDF, is there any way to avoid re-rendering it all the times?

Something like cache the parsed files, and for duplicate files, copy then from cache and transform to x,y.

Thanks.

@bsweeney
Copy link
Member

Are you talking about placing the same SVG on multiple pages, or on the same page in various locations? It's likely possible, but the actual method would depend on the PDF back end.

@urkoben
Copy link
Author

urkoben commented Jan 22, 2022

On one or more pages, on multiple locations on each page.

I asking this because some pdf i'm generating (list of products) takes too much time... the time looks going mainly on the 120 SVG rendering, but they're all repeated...

Thanks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants