Which product are you using?
PDF.js Express Plus
PDF.js Express Version
8.1.0
Detailed description of issue
I create standard stamps, and the images/icons have a small default size.
But because of the small default size the icons have very bad quality in the header. (See screenshot)
If I make standard stamps with more pixels, the standard size is too big, and I have trouble changing the default size.
I need to set the default size of the image/icon used. The only solution now is using different sized images, but I need good resolution and the size to be small.
Expected behaviour
When I use the setStyles method, I want to be able to scale the image to a different size, Opacity works fine but not Scale (check code)
Does your issue happen with every document, or just one?
Every document
I am using React.js
Code snippet
import circleIcon from ‘./icons/toggraf_f2_trekant_liten.png’;
import triangleIcon from ‘./icons/toggraf_g3_sirkel_liten.png’;
import triangleBlackIcon3 from ‘./icons/triangle-black-rounded-png.png’;
instance.Core.documentViewer
.getTool(‘AnnotationCreateRubberStamp’)
.setStandardStamps([
circleIcon,
triangleIcon,
triangleBlackIcon3,
]);
instance.Core.documentViewer
.getTool(‘AnnotationCreateRubberStamp’)
.setStyles(() => ({ Scale: 5, Opacity: 0.8 }));