printing problem with canvas Html5

Asked

Viewed 71 times

0

I have a form that prints query forms, forms created using canvas, and can printed n-fold copies, each with a numbering that increments in the form. It happens that at a certain moment, the form definition becomes extremely degraded, and it is not possible to read the form correctly. How to solve this?

Imagem ruim para impressão - a partir de

Imagem boa para impressão - início

  • Could put the source code that generates this and maybe an image with the problem/defect.

  • Follow the images, the code is in two steps, one with a 'for' control and the other with the canvas file itself (this is quite extensive)

  • It may be that it is resizing and the content is a non-vector image and therefore this causes loss of quality.

  • Well, if I was resizing, I think the problem would be on the first sheet (they are several sheets of the same form), but that was not the case. Anyway, the people responsible for creating the file had made a svg version and passed me this version, whose use proved extremely efficient. Thank you for your attention :-)

1 answer

0


For your application it might be better to use SVG instead of canvas, as it usually has a better rendering.

  • I’m seeing with the people who sent me the canvas file to send an example in svg, I hope it solves. Thanks for the tip!

  • I received the svg files and, after the adaptations (inclusion of automatic form number), they showed better definition.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.