Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Creating an HTML5 canvas graphic of a text label renders nicely within the browser, but blows up when rendered in a PDF through the PrintTask.

I've noticed the wider the graphic in relation to it's height, the larger it renders in the PDF (see attached screenshot).

The JSON sent to the GPserver seems legit:

"symbol": {
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriPMS",
"imageData": "iVBORw0KGgoAAAANSUhEUgAAAEgAAAAUCAYAAAAuoXvLAAAD60lEQVRYhe2XMUgjWRjHXyHEYiFXXMhCTlBc8ELOQrnOhZxNPMFCmOaQC16xpQM2gZtSjoAQYYstLFJYbOAEwQUFDwyERCGgB7kREjBoFEJkg0dYkitSvOJ3RTLvMjHjhXWNjX94kJn3/sn7fvm+b94I8aynEfA1sNVr9On/1sEf69P/2sH/5mGRfSEBX+GgPv0/ONiv+/T/4uD/8LDIvpCAUYBqtYphGBiG8VmA8vk8hmHw7t27zwKUyWQwDIOdnR3L31cGP0i0yufndsq+B1aA74Fh4BXwK/AHwOXlJUIIWjalUeAN8Duw2f78Xfu7XwO/AccAqVQKIQQzMzMKEK3yWwU+AG+Bn4BXbf+PQAz4CyAejyOEYHV19fEBAS+swB30Cfin84YDICd9BGTnjR6A7tN1941BA3oLUC6XCYVCKvBQKEQulwNASkkikcDv96NpGsfHx3cA5XI5pqamEELgcrnQNI1yuQxAs9kkGo3i9/vRdZ3d3d07gJLJJD6fDyEEbrcbXdep1WoA3N7eous6fr+faDTK5ubmYAABQ7SzY3JyUgVtjYODAwDW1tZs971erw1QvV7H5XLd8RcKBQAWFxd7+i1AhULhjtflclGv15FSMjIy0tM/CEDqqWT9eLlcRkqJaZpIKZFSquAPDw8BVAZYgKySGxsbo9Fo0Gw2MU0TgFKppNYWi0UA1tfXbYCskltYWEBKSaPRIJ/P2+a8Xi+1Wg0pJeFweGCARq1fiEQitvJKp9O24F0ulyqH7h4kpWRubs5WXt0Bzs7OKn93D6rVaoyPj9vK6+rqytZvIpGI8g+sB3UCAri4uEDXdZUxW1tbCsbExIQjIEumaaJpmprLZDIKRjgcdgRkQU6n0wSDQQW6VCopGLFY7GkBnZyc0Gg0ANjf31cbqFarKuBKpQLA2dnZnR5kmibNZhOAjY0NhBDE43FOT09ViUjZepjt7e3ZAN3c3HB+fq7ml5eXEUKQSqXY3t5GCMH8/LwCFIvFBg/ICrhzJBIJ4L8mOz09jWEYqhwsQJ0Z1Tmy2aytyYZCIQzDwO129+xB3aNSqVCpVFRGLy0tsbKyoq4HCkjXdbVxt9tNNBpV/2itVlOp7/F4SCaT6kliZZCmaWrjHo9HwQUoFosEAgGEEAQCAZLJpA1QqVSyHTF8Ph9HR0fKn81m8Xg8CCEIBoPqITHwHuSgT32suU8fH+j/u481j3oOWgB26DotAxe0XjeGab0mXP/PJptd138Ci7RO6nHuBy3pOm0DSVrvbi8d9tepxztJdwF7SSurXtwzP3yP/5u2v+ea9vyQw9xQ2zvaa40132coz3rWs55O/wIoXtgfiKE5wAAAAABJRU5ErkJggg==",
"contentType": "image/png",
"width": 54,
"height": 15
}

Does the GP Service support graphics of this kind created locally on the system? This might be a question for the AGS team?

Cheers, Blair

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.