You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using some javascript to search for code blocks with a class "plantuml", then calling a web server and swapping the content with an SVG.
This works great when rendering as "Web". Works flawlessly.
When rendering as "PDF" it works most of the time. It works well enough that I can get a PDF out of it with multiple attempts. Much of the time, however it will render before the SVG has had time to be fetched, so the diagram displays the code block instead of the SVG. When the document has multiple diagrams, it is even more problematic to get a complete PDF.
Is there a way I could delay the rendering of the PDF until the SVG has had time to be retrieved? Perhaps a setting in Info.plist like IATemplatePDFRenderDelay? That way I could set it to a reasonable value to allow time for a template with slightly longer load times (say 500ms?) to fully render.
I'm using some javascript to search for code blocks with a class "plantuml", then calling a web server and swapping the content with an SVG.
This works great when rendering as "Web". Works flawlessly.
When rendering as "PDF" it works most of the time. It works well enough that I can get a PDF out of it with multiple attempts. Much of the time, however it will render before the SVG has had time to be fetched, so the diagram displays the code block instead of the SVG. When the document has multiple diagrams, it is even more problematic to get a complete PDF.
Is there a way I could delay the rendering of the PDF until the SVG has had time to be retrieved? Perhaps a setting in Info.plist like
IATemplatePDFRenderDelay
? That way I could set it to a reasonable value to allow time for a template with slightly longer load times (say 500ms?) to fully render.The fetch code is something like this:
Some times it renders just the "loading..." text, and others it renders the SVG.
The text was updated successfully, but these errors were encountered: