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 pdftosvg.net to render pdf pages as images and show them to users later. Sometimes users are uploading PDF files containing some content pdftosvg.net is not able to render (e.g. JBIG2 compressed image). In such cases I'd like to fallback to other tool rather than show a broken image placeholder which is produced by pdftosvg.net.
My proposal is to add separate property into SvgConversionOptions (e.g. ThrowIfCannotBeRendered) which is false by default.
On caller-side I can set the property to true and pdftosvg.net will throw an exception when some not-supported feature occur in pdf file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm using pdftosvg.net to render pdf pages as images and show them to users later. Sometimes users are uploading PDF files containing some content pdftosvg.net is not able to render (e.g. JBIG2 compressed image). In such cases I'd like to fallback to other tool rather than show a broken image placeholder which is produced by pdftosvg.net.
My proposal is to add separate property into
SvgConversionOptions
(e.g.ThrowIfCannotBeRendered
) which isfalse
by default.On caller-side I can set the property to
true
and pdftosvg.net will throw an exception when some not-supported feature occur in pdf file.Usage example:
Beta Was this translation helpful? Give feedback.
All reactions