Select to view content in your preferred language

Print Widget problem with Printarea+Scale+DPI

316
1
12-20-2024 12:15 AM
AndreV
by
Frequent Contributor

Hi,

I've encountered a problem with showPrintAreaEnabled=true in Print Widget. It seems to render a correctly sized canvas only with 96dpi. Changing e.g. to 300dpi enlarges the printarea canvas. I think that's not the intended behaviour.

You can check that out in the samples: https://developers.arcgis.com/javascript/latest/sample-code/widgets-print/

96dpi.jpg

300dpi.jpg

 

 

gdi-hohenlohekreis.de
0 Kudos
1 Reply
AndreV
by
Frequent Contributor

Ok, I have reported this to Esri support. It's a bug (BUG-000173156) that will be addressed in a future release. Here's an alternative solution: 
Using a keyboard shortcut (press Shift and drag a box on the map to draw a preview area) results in that changing the DPI value no longer changes the extent of the print preview area. Keyboard shortcut is mentioned as a tip in documentation: https://doc.arcgis.com/en/arcgis-online/get-started/print-maps-mv.htm

gdi-hohenlohekreis.de
0 Kudos