| | 155 | == Alternative PDF Generation == |
| | 156 | |
| | 157 | For those of you who use ScribbleR2 I have generated an alternative |
| | 158 | MaterializeMapPDFPage method. |
| | 159 | This will produce three(3) images and one(1) text page in the generated PDF |
| | 160 | file. |
| | 161 | {{{ |
| | 162 | byte[] forPdf1 = MaterializeMapImagePage(session, mapname, width, height, imageflavor); |
| | 163 | |
| | 164 | byte[] forPdf2 = MaterializeMapImagePage(session, mapname, System.Convert.ToInt32(Math.Ceiling(width * .65)), System.Convert.ToInt32(Math.Ceiling(height * .65)), imageflavor); |
| | 165 | |
| | 166 | byte[] forPdf3 = MaterializeMapImagePage(session, mapname, System.Convert.ToInt32(Math.Ceiling(width * .40)), System.Convert.ToInt32(Math.Ceiling(height * .40)), imageflavor); |
| | 167 | }}} |
| | 168 | |
| | 169 | Preferences are set in the output PDF to show thumbnails and Fit. |
| | 170 | |
| | 171 | The fourth(4) page is the text contents of the Scribble markup layer. |
| | 172 | (centroid of geometry) |
| | 173 | |
| | 174 | If you have made no changes yourself you should be able to rename the |
| | 175 | existing MaterializeMapPDFPage method that is in scribblemethodsmgr.cs, copy |
| | 176 | and paste the contents of the attachment and you should be good-to-go. |