PDF export/printing from Esri Android MapView

2837
1
10-27-2014 02:47 PM
deleted-user-Ohz6rwd1kavx
New Contributor III

Hi,

I'm looking for any documentation, Esri or otherwise, that could help me understand how best to approach developing a tool to create a .pdf and/or print an Esri Android map control.

Esri has a native .NET sample that demonstrates client printing, but there are quite a few gotchas in applying that approach to Android...I think the general approach of creating taking the on-screen MapView and creating from that a printable MapView translates pretty well. However, the next steps in the .NET sample delegates control to the System PrintDialog which ain't gonna get me too far.

I am interested in, primarily, generating a .pdf from the MapView. Secondarily, I am also interested in standard approaches for actually printing to a printer. I have done a bit of poking, and finding zero specific to Esri. I am interested in client solutions that will work without a connection to an ArcGIS Server print service.

Thanks,

-Cory

0 Kudos
1 Reply
deleted-user-Ohz6rwd1kavx
New Contributor III

Here is what I found for this.

1. Use MapView.getDrawingMapCache() to get a bitmap from your MapView.

2. Add the bitmap to an android PdfDocument and print it using the native android print API

-Cory

0 Kudos