itext-java icon indicating copy to clipboard operation
itext-java copied to clipboard

SVG: Initial implementation of stroke-dasharray attribute

Open Snipx opened this issue 3 years ago • 2 comments

For now only absolute values are supported. Percents are not supported

This got raised in https://stackoverflow.com/questions/73276129/itext7-doesnt-convert-the-svg-image-to-pdf-properly

Snipx avatar Aug 12 '22 19:08 Snipx

I tried my best but I know that it might still take more time to polish it to pass all the checks, sorry.

If you want to add some kind of a hook/trigger so that SonarQube checks are run for (at least some of the) PRs, I can take a look at fixing the SQ issues.

Snipx avatar Aug 12 '22 19:08 Snipx

@Snipx Thanks for the implementation. This is giving expected results for dashed stroke array svg properties, When can we expect this to be delivered in itext7 library ?

Indhumathi-Syncron avatar Aug 24 '22 08:08 Indhumathi-Syncron

Hello @Snipx , Could you please let us know when this stroke array implementation gets merged and released as maven ?

Indhumathi-Syncron avatar Jan 03 '23 07:01 Indhumathi-Syncron

This pull request has been merged and the feature is now available in a snapshot version. Thank you, @Snipx . Also stroke-dashoffset is supported. https://github.com/itext/itext7/commit/4f2b6a09d50f861a4f18f665768d8c625b278c1f And percents are also supported, see commit https://github.com/itext/itext7/commit/e0b0a5d92ad61c58615f9c9f0b0f2229b1951988

vitali-pr avatar Dec 01 '23 09:12 vitali-pr