pdfAnnotate icon indicating copy to clipboard operation
pdfAnnotate copied to clipboard

SquareAnnotation is not working

Open alibakhshiilani opened this issue 4 years ago • 1 comments

` AnnotationFactory.loadFile(url).then((factory) => {

        factory.createSquareAnnotation(
                0, 
                [478.55, 207.57, 558.55, 232.57],
                "",
                "",
                {r:10,g:50,b:30},
                {r:150,g:200,b:20}
        )

        setTimeout(()=>{
            factory.download()
        },2000)

    })

`

only text annotation is working and i cant see my square annotation after donwloading pdf

alibakhshiilani avatar Jan 30 '21 21:01 alibakhshiilani

Hello @alibakhshiilani, I cannot reproduce the problem. Are you sure that the provided coordinates [478.55, 207.57, 558.55, 232.57] do not exceed the page view pane of your document? Most renderers will not display such annotations.

highkite avatar Mar 25 '21 22:03 highkite