Hi , I am using Flex 2.1 and Alive pdf to export map object to pdf. I am able to export the Map object to pdf .Before exporting , I have removed the scalebar , zoomSliderbar and logo from com.esri.ags.Map object.but the updated map object is not reflected in the pdf.private function exportToPdf():void{ portPDF=new PDF(Orientation.LANDSCAPE,Unit.MM,Size.LETTER);portPDF.setDisplayMode(Display.FULL_PAGE,Layout.SINGLE_PAGE);portPDF.setMargins(2,2,2,2);portPDF.addPage();var rs:org.alivepdf.layout.Resize=new org.alivepdf.layout.Resize("FitToPage","left");myMap.scaleBarVisible=false;myMap.zoomSliderVisible=false;myMap.logoVisible=falseportPDF.addImage(myMap,rs,3,3,420,300,0,1,false,ImageFormat.JPG,100,"Normal",null);const fileReference:FileReference = new FileReference();fileReference.save(portPDF.save(Method.LOCAL,"",Download.INLINE,"portPDF.pdf"),"map.pdf"); myMap.scaleBarVisible=true;myMap.zoomSliderVisible=true;myMap.logoVisible=true; } I am not sure , if i am missing something. Thanks in anticipation of your help.Regards, Nidhi
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.