Foxit PDF SDK For Web supports Stamp to add custom icons, including svg format. The corresponding pdf and svg need to exist in the same directory, and then add pdf through url to achieve.
Question:
After adding the icon through the url, in the Stamp drop-down list, overlapping display results appear, as shown in the figure:
The reason for the problem:
There is a problem with the SVG image. There are no width and height parameters on the svg node, but the child node has rect. This will cause svg to fail to scale the image within the img tag according to the width and height values set by img.
How to solve:
Resize svg data. After adjusting the svg data, as shown in the figure:
After adjusting the svg and adding it again, the display result is as shown in the figure: