PDF export freezing

Hello
We have a VB6 application using RDC in CR XIR2. This application is exporting typically 10-100 invoices as a PDF. Occasionally this export is hanging and control does not return from the RDC application back to the application.
Recently when I studied this problem at customer I noticed that this user had 75000 temporary files in the Local Settings\temp folder. 99% of those were Crystal Reports temporary files.
I saw elsewhere in the web that these old temporary files could be an issue when printing reports with Crystal Reports but is this true?
Our report has 3 subreports. I have used tracing and noticed that somehow based on the log printing is "interleaved", ie it looks like there are two printings going at the same time.
Any idea what might be wrong?
Here is the part of the log where things start to go wrong. I have compared the log from the similar printings and differenced are marked with "ODD -->" in the log file. It seems that runtime is starting something else while previous things are still going on.
0xad4,Start Background Processing,Elapsed Time,"20"
0xad4,Generating a subreport object,STOP,"Successfully generated subreport"
0xad4,createNewDataSource,Start Time,"14:05:36"
0xad4,createNewDataSource,Elapsed Time,"0"
0xad4,Generating a subreport object,Start Time,"14:05:36"
0xad4,Checking for data source changes,Start Time,"14:05:36"
0xad4,DataSet checking for datasource changes,Start Time,"14:05:36"
0xad4,DataSet checking for datasource changes,Starting to check current datasource for changes,""
0xad4,DataSource handling report changes,Start Time,"14:05:36"
0xad4,DataSource handling report changes,Deleting the last saved records,""
0xad4,Invalidating saved records,Start Time,"14:05:36"
0xad4,Invalidating totaller,Start Time,"14:05:36"
0xad4,Invalidating totaller,Elapsed Time,"0"
0xad4,Invalidating saved records,Elapsed Time,"1"
0xad4,Determine if two passes needed,Start Time,"14:05:36"
0xad4,Determine if two passes needed,Two passes are NOT needed,"Nothing forces us to use two passes"
0xad4,Determine if two passes needed,Elapsed Time,"0"
0xad4,DataSource handling report changes,Marking first pass as NOT finished,""
0xad4,DataSource handling report changes,Elapsed Time,"4"
0xad4,DataSet checking for datasource changes,Elapsed Time,"5"
0xad4,Checking for data source changes,Elapsed Time,"6"
0xad4,Start Background Processing,Start Time,"14:05:36"
0xad4,Do First Pass,Start Time,"14:05:36"
0xad4,Do First Pass,stopRecord,"0"
0xad4,Do First Pass,Marking first pass as NOT finished,""
0xad4,Regenerating saved records,Start Time,"14:05:36"
0xad4,Regenerating saved records,Push record selection to server,"FALSE"
0xad4,Begin reading from database,Start Time,"14:05:36"
0xad4,Opening database connections,Start Time,"14:05:36"
0xad4,Opening database connections,Number of tables in report,"1"
0xad4,Opening database connections,Number of connections in report,"1"
0xad4,Opening database connections,Elapsed Time,"1"
0xad4,Begin reading from database,Elapsed Time,"16"
0xad4,End reading from database,Start Time,"14:05:36"
0xad4,End reading from database,Total records read,"0"
0xad4,End reading from database,Elapsed Time,"1"
0xad4,Regenerating saved records,Finished running the first pass,""
0xad4,Regenerating saved records,Elapsed Time,"19"
0xad4,Do First Pass,Have valid saved records,"Don't eval record selection"
0xad4,Do First Pass,Marking first pass as finished,""
0xad4,Do First Pass,Elapsed Time,"21"
0xad4,Start Background Processing,Elapsed Time,"22"
0xad4,Generating a subreport object,STOP,"Successfully generated subreport"
ODD --> 0xad4,createNewDataSource,Start Time,"14:05:36"
ODD --> 0xad4,createNewDataSource,Elapsed Time,"0"
0xad4,Generating a subreport object,Start Time,"14:05:36"
What the runtime does on the background? How the calling application should wait for it if needed at all??
Thanks in advance for all comments and ideas!!
Timo Juntunen

First place I'd start is ensuring that you have the latest Service Pack:
https://smpdl.sap-ag.de/~sapidp/012002523100006255422008E/crxir2_sp4_inc.exe
The equivalent msm is here:
https://smpdl.sap-ag.de/~sapidp/012002523100009381702008E/crxir2sp4_rdc_mm.zip
Next. I have used the code below to export a number of reports, with no issues. This code has been left to process a report over the weekend, creating thousands of export files. The only timne it failed, was when the system ran out of hard drive space.
Private Sub Command1_Click()
  Dim fileName As String
  Dim i As Integer
  For i = 1 To 2000
     Dim crReport As CRAXDRT.Report
     Set crReport = crAppl.OpenReport(App.Path & "\group.rpt", crOpenReportByTempCopy)
     crReport.ExportOptions.DestinationType = crEDTDiskFile
     crReport.ExportOptions.FormatType = crEFTText
     fileName = App.Path & "\group" & i & ".txt"
     List1.AddItem "Export " & i & " " + fileName
     crReport.ExportOptions.DiskFileName = fileName
     crReport.Export False
     While crReport.PrintingStatus.Progress = crPrintingInProgress
       DoEvents
     Wend
     Set crReport = Nothing
  Next i
End Sub
See how that compares to the code you are using.
Ludek

Similar Messages

  • PDF Export Crash (follow-up)

    There was a thread a while back titled "PDF Export Crash." Because it was archived, I was unable to post my findings there. This issue recently became front and center for me within the last 24 hours. For those unaware, I am referring to an issue where Pages crashes every single time you try to export to PDF on certain documents (even through the print dialog). Using a different computer only produces the same results!
    After some investigation and testing, I was able to discover that the presence of footnotes was directly tied to the problem. Once removed, seamless exporting followed. However, not all footnotes were responsible. I found the third page of my document, when isolated, exported just fine along with its footnote; while the fourth page of my document, when isolated, did not export (crashed). Footnote along are there NOT directly responsible.
    Although I am still unable to determine the exact problem, I would like to make these observations available along with another workaround I discovered. It is a little tedious, but absolutely guaranteed to work for someone who is desparate.
    1. Copy and paste your entire document into TextEdit.
    2. Create a new blank Pages document and past it back in.
    3. Manually add your footnote back in one at a time.
    4. Make any minor formatting corrections from the transfer.
    After using this method to recreate the original document, while visibly symmetrical, the recreation process somehow eliminated the "quirks" that were causing Pages to crash during a PDF export.
    If anyone is still having this issue, I'd be interested to hear from you. Especially if you have discovered exactly what causes certain footnotes to disrupt the PDF export process.
    iMac G4   Mac OS X (10.4.2)  

    In order to isolate the problem as much as possible, you may want to delete parts of the document, step by step, and see how small it can be and still crash.
    If you are lucky, that may tell us exactly what causes the crash.
    If you are unlucky, the reason is an exceptional corruption of the document, which happened some time in the past, and which cannot be isolated this way.
    Good luck!

  • Script that worked in CS does not work in CS4 - multiple open page, print , pdf export and close

    I had a script that worked great for me in Indesign CS. But now does not work in CS4. Anyone knows what needs to be done to make it work again ?
    When I drop folder with indesign files on top of this script:
    1. opens first page
    2. turns specific layer on
    3. prints using preset
    4. exports using preset
    5. close without saving
    6. next page
    Anyone who can give me solution or idea how this should work is greatly appreciated.
    on open sourceFolders
    repeat with sourceFolder in sourceFolders
    tell application "Finder"
    try
    -- If you would like to include subfolders, you say - every file of entire contents of folder…
    set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias list
    on error -- work around bug if there is only one file
    set idFiles to (every file of folder sourceFolder whose file type is "IDd5") as alias as list
    end try
    end tell
    if idFiles is not {} then
    tell application "Adobe InDesign CS4"
    set user interaction level to never interact
    repeat with i from 1 to count of idFiles
    open item i of idFiles
    tell document 1
    try
    set visible of layer "ImagesTag_Layer" to true
    end try
    set myPreset to "letter size" -- name of print style to use
    with timeout of 700 seconds
    print using myPreset without print dialog
    end timeout
    set myPreset1 to "pdf preset name" -- name of pdf export style to use
    set myName to the name -- name includes .indd should remove at some point          
    with timeout of 700 seconds
    export format PDF type to "users:temp:Desktop:pdf:" & myName & ".pdf" using myPreset1 without showing options -- set path here format ComputerName:Folder1:Folder2:......:FileName.pdf
    end timeout
    close without saving
    end tell
    end repeat
    set user interaction level to interact with all
    end tell
    end if
    return 10 -- try again in 10 seconds
    end repeat
    end open

    (Disclaimer: me not an AS guy!)
    First thing I noticed is the interaction level is set off. If you comment out this line
    set user interaction level to never interact
    you might be able to pinpoint the exact error -- ID will display a standard "failed" dialog, hopefully showing the line that it fails on.
    A quick question: the script assumes two presets in your InDesign: one for print ("letter size") and one for PDFs ("pdf preset name"):
    set myPreset to "letter size" -- name of print style to use
    set myPreset1 to "pdf preset name" -- name of pdf export style to use 
    Do these actually exist in your CS4, with the same (non)capitalization and spaces?

  • URGENT! Alive PDF - export PDF file ("my computer" prompt to save the file, not create in browser)

    Hi - I'm having issues with my code and I'm not an ActionScript coder by any means. I'm using Flash Builder 4. I've been able to figure out how to export to PNG and to XLS but PDF is really killing me.
    Below is my code and it's not causing errors when I do the release build but the my button doesn't work to export to PDF.  I'm trying to create a PNG using the PNGEncoder and then push that out to PDF (when the PDF button is selected). I used some sample code and I've commented out parts that I didn't want to use or didn't seem to apply to my application. Unfortunately, I have a deadline of May 3rd on this and there is no one else in the office here to help me... hope someone out there can.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="650" width="850">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import flash.events.Event;
                import mx.events.DropdownEvent;
                import mx.events.*;
                import mx.graphics.codec.PNGEncoder;
                import org.alivepdf.display.*;
                import org.alivepdf.images.ColorSpace;
                import org.alivepdf.fonts.*;
                import org.alivepdf.layout.*;
                import org.alivepdf.pdf.*;
                import org.alivepdf.saving.*;
                import mx.controls.Alert;
                //PDF Export information
                protected var pdf:PDF;
                protected function savePDF(event:MouseEvent): void {
                    pdf = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER);
                    pdf.setDisplayMode(Display.FULL_WIDTH);
                    pdf.addPage();
                    var bd:BitmapData = new BitmapData(cChart.width,cChart.height);
                    bd.draw(cChart);
                    var png:PNGEncoder = new PNGEncoder();
                    var ba:ByteArray = png.encode(bd);
                    //try {
                    pdf.addImageStream(ba, ColorSpace.DEVICE_RGB, new Resize ( Mode.FIT_TO_PAGE, Position.CENTERED ), 10, 10, 800, 800, 0, 1, "Normal", null);
                    //} catch (e:Error) {
                    //    trace("Error occurred!");
                    //    Alert.show(e,"");
                    //myPDF.addImageStream(new jpgBytes() as ByteArray, ColorSpace.DEVICE_RGB, null, 0, 0, 500, 500, 0, 1, "Normal", null);
                    //imageBytes:ByteArray, colorSpace:String, resizeMode:Resize=null, x:Number=0, y:Number=0, width:Number=0, height:Number=0, rotation:Number=0, alpha:Number=1, blendMode:String="Normal", link:ILink=null):
                    //pdf.setFont(FontFamily.ARIAL, Style.NORMAL, 12);
                    //pdf.addText("Grafico de Rata de Fallas", 100, 40); // title
                    //pdf.addImage(imprimirRata, 50, 50, 200, 150); // captured canvas with charts
                    //      pdf.addImage(leyendaImprimir, 50, 120, 20,20); // captured leyend of charts
                    //pdf.addText("RTP Software. Modulo de Score Card.", 10, 200); // header of the document
                    //pdf.addText("Creado: " + new Date(), 180, 200); // Add the created date as a leyend or footer on document
                    var fr:FileReference = new FileReference();
                    fr.save(pdf.save(Method.LOCAL), "nep_piefy11.pdf");
                    /*var fs:FileStream = new FileStream();
                    var file: File = File.desktopDirectory.resolvePath("nep_piefy11.pdf"); // Name of the file
                    fs.open(file, FileMode.WRITE);
                    fs.writeBytes(pdf.save(Method.LOCAL));
                    fs.close();*/
                    //Alert.show("El reporte ha sido generado", "Informacion"); // Confirmation message as a pop-up
                //Pie Chart Creation information
                [Bindable]
                public var ds:ArrayCollection = sel;
                private function changeEvt(event:Event):void {
                    if(filterCombo.selectedItem == 'Select NEP') {ds = sel;}
                    if(filterCombo.selectedItem == 'Albemarle-Pamlico Estuary Program') {ds = nep1;}
                    if(filterCombo.selectedItem == 'Barataria-Terrebonne Estuary Program') {ds = nep2;}
                    if(filterCombo.selectedItem == 'Barnegat Bay Estuary Program') {ds = nep3;}
                    if(filterCombo.selectedItem == 'Buzzards Bay National Estuary Program') {ds = nep4;}
                    if(filterCombo.selectedItem == 'Casco Bay Estuary Partnership') {ds = nep5;}
                    if(filterCombo.selectedItem == 'Charlotte Harbor Estuary Program') {ds = nep6;}
                    if(filterCombo.selectedItem == 'Coastal Bend Bays and Estuaries Program') {ds = nep7;}
                    if(filterCombo.selectedItem == 'Delaware Estuary Program') {ds = nep8;}
                    if(filterCombo.selectedItem == 'Delaware Inland Bays Estuary Program') {ds = nep9;}
                    if(filterCombo.selectedItem == 'Galveston Bay Estuary Program') {ds = nep10;}
                    if(filterCombo.selectedItem == 'Indian River Lagoon NEP') {ds = nep11;}
                    if(filterCombo.selectedItem == 'Long Island Sound Study') {ds = nep12;}
                    if(filterCombo.selectedItem == 'Lower Columbia River Estuary') {ds = nep13;}
                    if(filterCombo.selectedItem == 'Maryland Coastal Bays Program') {ds = nep14;}
                    if(filterCombo.selectedItem == 'Massachusetts Bays NEP') {ds = nep15;}
                    if(filterCombo.selectedItem == 'Mobile Bay Estuary Program') {ds = nep16;}
                    if(filterCombo.selectedItem == 'Morro Bay Estuary Program') {ds = nep17;}
                    if(filterCombo.selectedItem == 'Narragansett Bay Estuary Program') {ds = nep18;}
                    if(filterCombo.selectedItem == 'New York-New Jersey Harbor Estuary Program') {ds = nep19;}
                    if(filterCombo.selectedItem == 'Peconic Estuary Program') {ds = nep20;}
                    if(filterCombo.selectedItem == 'Piscataqua Region Estuaries Partnership') {ds = nep21;}
                    if(filterCombo.selectedItem == 'Puget Sound Partnership') {ds = nep22;}
                    if(filterCombo.selectedItem == 'San Francisco Estuary Project') {ds = nep23;}
                    if(filterCombo.selectedItem == 'San Juan Bay NEP') {ds = nep24;}
                    if(filterCombo.selectedItem == 'Santa Monica Bay Restoration Project') {ds = nep25;}
                    if(filterCombo.selectedItem == 'Sarasota Bay Estuary Program') {ds = nep26;}
                    if(filterCombo.selectedItem == 'Tampa Bay Estuary Program') {ds = nep27;}
                    if(filterCombo.selectedItem == 'Tillamook Estuaries Partnership') {ds = nep28;}
                [Bindable]
                private var sel:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0.5},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep1:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 778.44},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0.45},
                    { habtype: "Estuarine Shoreline", Acres: 1276.30},
                    { habtype: "Instream", Acres: 1.0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0.75},
                    { habtype: "Upland", Acres: 779.74},
                    { habtype: "Wetland", Acres: 3268.31} ]);
                [Bindable]
                private var nep2:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 7.25},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 1185} ]);
                [Bindable]
                private var nep3:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 35.21},
                    { habtype: "Upland", Acres: 852.57},
                    { habtype: "Wetland", Acres: 197.82} ]);
                [Bindable]
                private var nep4:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 751.82},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 321.82},
                    { habtype: "Wetland", Acres: 157.35} ]);
                [Bindable]
                private var nep5:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 217},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 324.5},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep6:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 1268},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 50},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 61},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 809},
                    { habtype: "Wetland", Acres: 1690} ]);
                [Bindable]
                private var nep7:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 726} ]);
                [Bindable]
                private var nep8:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0.28},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 82},
                    { habtype: "Estuarine Shoreline", Acres: 0.14},
                    { habtype: "Instream", Acres: 2.3},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 643},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 501.9},
                    { habtype: "Upland", Acres: 148.71},
                    { habtype: "Wetland", Acres: 2586.02} ]);
                [Bindable]
                private var nep9:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 26.21},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 37},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 27},
                    { habtype: "Wetland", Acres: 646} ]);
                [Bindable]
                private var nep10:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 2868},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 407.06} ]);
                [Bindable]
                private var nep11:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 5},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 3},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 43},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 12910.5},
                    { habtype: "Wetland", Acres: 5026} ]);
                [Bindable]
                private var nep12:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 67},
                    { habtype: "Beach/Dune", Acres: 21.95},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 120.72},
                    { habtype: "Wetland", Acres: 151.08} ]);
                [Bindable]
                private var nep13:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 12},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 194},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 200} ]);
                [Bindable]
                private var nep14:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 58},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 153},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 494.3},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep15:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 1313},
                    { habtype: "Estuarine Shoreline", Acres: 8},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 543.8} ]);
                [Bindable]
                private var nep16:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 40},
                    { habtype: "Estuarine Shoreline", Acres: 6.5},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 195},
                    { habtype: "Wetland", Acres: 85} ]);
                [Bindable]
                private var nep17:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 1109.9},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 1.14},
                    { habtype: "Estuarine Shoreline", Acres: 0.28},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0.71},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep18:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 1099},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep19:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 101.3} ]);
                [Bindable]
                private var nep20:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 98.72},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 17.99},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 106.13},
                    { habtype: "Wetland", Acres: 12.97} ]);
                [Bindable]
                private var nep21:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 9},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 3},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 2},
                    { habtype: "Upland", Acres: 1451},
                    { habtype: "Wetland", Acres: 27} ]);
                [Bindable]
                private var nep22:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 26},
                    { habtype: "Beach/Dune", Acres: 1.65},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 240.39},
                    { habtype: "Estuarine Shoreline", Acres: 314.97},
                    { habtype: "Instream", Acres: 505.87},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 1450.47},
                    { habtype: "Upland", Acres: 1176.7},
                    { habtype: "Wetland", Acres: 850.58} ]);
                [Bindable]
                private var nep23:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 43.05},
                    { habtype: "Upland", Acres: 4519},
                    { habtype: "Wetland", Acres: 3271} ]);
                [Bindable]
                private var nep24:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 1},
                    { habtype: "Coral Reef", Acres: 0.13},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 1},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 10} ]);
                [Bindable]
                private var nep25:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 1.6},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 7},
                    { habtype: "Riparian", Acres: 100},
                    { habtype: "Upland", Acres: 6.2},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep26:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 5.5},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 4.5},
                    { habtype: "Estuarine Shoreline", Acres: 15},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 82},
                    { habtype: "Wetland", Acres: 40} ]);
                [Bindable]
                private var nep27:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 5.1},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 23},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 4.8},
                    { habtype: "Mangrove", Acres: 3.5},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 1221},
                    { habtype: "Wetland", Acres: 17.4}]);   
                [Bindable]
                private var nep28:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 67},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 2},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 31.33},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 74.24}]);               
                private function displayAcres(data:Object, field:String, index:Number, percentValue:Number):String {
                    var temp:String= (" " + percentValue).substr(0,6);
                    return data.habtype + ": " + '\n ' + data.Acres + " Acres" + '\n ' + temp + "%";
                //Export to PNG information
                private function saveImageAs(event:MouseEvent):void
                    var bd:BitmapData = new BitmapData(cChart.width,cChart.height);
                    bd.draw(cChart);
                    var png:PNGEncoder = new PNGEncoder();
                    var ba:ByteArray = png.encode(bd);
                    var fr:FileReference = new FileReference();
                    fr.save(ba, "nepfy11-piechart.png");
            ]]>
        </mx:Script>
        <!--mx:SeriesInterpolate id="chartChange" duration="2000" /-->
        <mx:Panel id="cChart" title="2011 Habitat Efforts" width="825" height="600" chromeColor="#527EAC" layout="vertical" color="#FFFFFF" verticalGap="10" x="15" y="15">
            <mx:HBox width="400" height="20">
                <mx:ComboBox id="filterCombo" x="140" y="140" change="changeEvt(event)" color="#000000" >
                    <mx:String>Select NEP</mx:String>
                    <mx:String>Albemarle-Pamlico Estuary Program</mx:String>
                    <mx:String>Barataria-Terrebonne Estuary Program</mx:String>
                    <mx:String>Barnegat Bay Estuary Program</mx:String>
                    <mx:String>Buzzards Bay National Estuary Program</mx:String>
                    <mx:String>Casco Bay Estuary Partnership</mx:String>
                    <mx:String>Charlotte Harbor Estuary Program</mx:String>
                    <mx:String>Coastal Bend Bays and Estuaries Program</mx:String>
                    <mx:String>Delaware Estuary Program</mx:String>
                    <mx:String>Delaware Inland Bays Estuary Program</mx:String>
                    <mx:String>Galveston Bay Estuary Program</mx:String>
                    <mx:String>Indian River Lagoon NEP</mx:String>
                    <mx:String>Long Island Sound Study</mx:String>
                    <mx:String>Lower Columbia River Estuary</mx:String>
                    <mx:String>Maryland Coastal Bays Program</mx:String>
                    <mx:String>Massachusetts Bays NEP</mx:String>
                    <mx:String>Mobile Bay Estuary Program</mx:String>
                    <mx:String>Morro Bay Estuary Program</mx:String>
                    <mx:String>Narragansett Bay Estuary Program</mx:String>
                    <mx:String>New York-New Jersey Harbor Estuary Program</mx:String>
                    <mx:String>Peconic Estuary Program</mx:String>
                    <mx:String>Piscataqua Region Estuaries Partnership</mx:String>
                    <mx:String>Puget Sound Partnership</mx:String>
                    <mx:String>San Francisco Estuary Project</mx:String>
                    <mx:String>San Juan Bay NEP</mx:String>
                    <mx:String>Santa Monica Bay Restoration Project</mx:String>
                    <mx:String>Sarasota Bay Estuary Program</mx:String>
                    <mx:String>Tampa Bay Estuary Program</mx:String>
                    <mx:String>Tillamook Estuaries Partnership</mx:String>
                </mx:ComboBox>
            </mx:HBox>
            <mx:HBox horizontalGap="20" width="822" height="535">
                <mx:PieChart id="chart" showDataTips="true" dataProvider="{ds}" width="634"  height="534" paddingTop="10" fontSize="9" fontFamily="Arial" color="#000000" textAlign="left">
                    <mx:series>
                        <mx:PieSeries id="seriesId" explodeRadius="0.06" nameField="habtype" labelPosition="callout" color="#000000" insideLabelSizeLimit="8" field="Acres" labelFunction="displayAcres">
                        </mx:PieSeries>
                    </mx:series>
                </mx:PieChart>
                <mx:Legend dataProvider="{chart}" dropShadowVisible="true" width="150" color="#000000" height="350" chromeColor="#527EAC" borderColor="#527EAC" direction="vertical"/>          
            </mx:HBox>
        </mx:Panel>
        <mx:Button x="734" y="623" label="Export Pie Chart" id="btnSnap" click="saveImageAs(event)"/>
        <mx:Button x="444" y="623" label="PDF" click="savePDF(event)" />
    </mx:Application>
    Thank you in advance,
    Alison

    I figured it out!!!!! In case anyone else needs to know - here is the working code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="650" width="850">
        <mx:Script>
            <![CDATA[
                import flash.events.Event;
                import mx.collections.ArrayCollection;
                import mx.controls.Alert;
                import mx.events.*;
                import mx.events.DropdownEvent;
                import mx.graphics.codec.PNGEncoder;
                import org.alivepdf.display.*;
                import org.alivepdf.fonts.*;
                import org.alivepdf.images.ColorSpace;
                import org.alivepdf.images.PDFImage;
                import org.alivepdf.layout.*;
                import org.alivepdf.pdf.*;
                import org.alivepdf.saving.*;
                //PDF Export information
                private var pdf:PDF;
                private function savePDF(event:MouseEvent): void {
                    pdf = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER);
                    pdf.setDisplayMode(Display.FULL_WIDTH);
                    pdf.addPage();
                    var bd:BitmapData = new BitmapData(cChart.width,cChart.height);
                    bd.draw(cChart);
                    var bm:Bitmap=new Bitmap(bd);
                    //bm.x=825;
                    //bm.y=600;
                    //bm.width=825;
                    pdf.setMargins(0, 2, 0, 0);
                    pdf.addImage(bm, new Resize (Mode.RESIZE_PAGE, Position.CENTERED));
                    //pdf.setXY(10,95);
                    var bytes:ByteArray=pdf.save(Method.LOCAL);
                    var fr:FileReference=new FileReference();
                    fr.save(bytes,"nep_piefy11.pdf");
                //Pie Chart Creation information
                [Bindable]
                public var ds:ArrayCollection = sel;
                private function changeEvt(event:Event):void {
                    if(filterCombo.selectedItem == 'Select NEP') {ds = sel;}
                    if(filterCombo.selectedItem == 'Albemarle-Pamlico Estuary Program') {ds = nep1;}
                    if(filterCombo.selectedItem == 'Barataria-Terrebonne Estuary Program') {ds = nep2;}
                    if(filterCombo.selectedItem == 'Barnegat Bay Estuary Program') {ds = nep3;}
                    if(filterCombo.selectedItem == 'Buzzards Bay National Estuary Program') {ds = nep4;}
                    if(filterCombo.selectedItem == 'Casco Bay Estuary Partnership') {ds = nep5;}
                    if(filterCombo.selectedItem == 'Charlotte Harbor Estuary Program') {ds = nep6;}
                    if(filterCombo.selectedItem == 'Coastal Bend Bays and Estuaries Program') {ds = nep7;}
                    if(filterCombo.selectedItem == 'Delaware Estuary Program') {ds = nep8;}
                    if(filterCombo.selectedItem == 'Delaware Inland Bays Estuary Program') {ds = nep9;}
                    if(filterCombo.selectedItem == 'Galveston Bay Estuary Program') {ds = nep10;}
                    if(filterCombo.selectedItem == 'Indian River Lagoon NEP') {ds = nep11;}
                    if(filterCombo.selectedItem == 'Long Island Sound Study') {ds = nep12;}
                    if(filterCombo.selectedItem == 'Lower Columbia River Estuary') {ds = nep13;}
                    if(filterCombo.selectedItem == 'Maryland Coastal Bays Program') {ds = nep14;}
                    if(filterCombo.selectedItem == 'Massachusetts Bays NEP') {ds = nep15;}
                    if(filterCombo.selectedItem == 'Mobile Bay Estuary Program') {ds = nep16;}
                    if(filterCombo.selectedItem == 'Morro Bay Estuary Program') {ds = nep17;}
                    if(filterCombo.selectedItem == 'Narragansett Bay Estuary Program') {ds = nep18;}
                    if(filterCombo.selectedItem == 'New York-New Jersey Harbor Estuary Program') {ds = nep19;}
                    if(filterCombo.selectedItem == 'Peconic Estuary Program') {ds = nep20;}
                    if(filterCombo.selectedItem == 'Piscataqua Region Estuaries Partnership') {ds = nep21;}
                    if(filterCombo.selectedItem == 'Puget Sound Partnership') {ds = nep22;}
                    if(filterCombo.selectedItem == 'San Francisco Estuary Project') {ds = nep23;}
                    if(filterCombo.selectedItem == 'San Juan Bay NEP') {ds = nep24;}
                    if(filterCombo.selectedItem == 'Santa Monica Bay Restoration Project') {ds = nep25;}
                    if(filterCombo.selectedItem == 'Sarasota Bay Estuary Program') {ds = nep26;}
                    if(filterCombo.selectedItem == 'Tampa Bay Estuary Program') {ds = nep27;}
                    if(filterCombo.selectedItem == 'Tillamook Estuaries Partnership') {ds = nep28;}
                [Bindable]
                private var sel:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0.5},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep1:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 778.44},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0.45},
                    { habtype: "Estuarine Shoreline", Acres: 1276.30},
                    { habtype: "Instream", Acres: 1.0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0.75},
                    { habtype: "Upland", Acres: 779.74},
                    { habtype: "Wetland", Acres: 3268.31} ]);
                [Bindable]
                private var nep2:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 7.25},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 1185} ]);
                [Bindable]
                private var nep3:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 35.21},
                    { habtype: "Upland", Acres: 852.57},
                    { habtype: "Wetland", Acres: 197.82} ]);
                [Bindable]
                private var nep4:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 751.82},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 321.82},
                    { habtype: "Wetland", Acres: 157.35} ]);
                [Bindable]
                private var nep5:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 217},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 324.5},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep6:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 1268},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 50},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 61},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 809},
                    { habtype: "Wetland", Acres: 1690} ]);
                [Bindable]
                private var nep7:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 726} ]);
                [Bindable]
                private var nep8:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0.28},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 82},
                    { habtype: "Estuarine Shoreline", Acres: 0.14},
                    { habtype: "Instream", Acres: 2.3},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 643},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 501.9},
                    { habtype: "Upland", Acres: 148.71},
                    { habtype: "Wetland", Acres: 2586.02} ]);
                [Bindable]
                private var nep9:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 26.21},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 37},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 27},
                    { habtype: "Wetland", Acres: 646} ]);
                [Bindable]
                private var nep10:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 2868},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 407.06} ]);
                [Bindable]
                private var nep11:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 5},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 3},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 43},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 12910.5},
                    { habtype: "Wetland", Acres: 5026} ]);
                [Bindable]
                private var nep12:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 67},
                    { habtype: "Beach/Dune", Acres: 21.95},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 120.72},
                    { habtype: "Wetland", Acres: 151.08} ]);
                [Bindable]
                private var nep13:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 12},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 194},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 200} ]);
                [Bindable]
                private var nep14:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 58},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 153},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 494.3},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep15:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 1313},
                    { habtype: "Estuarine Shoreline", Acres: 8},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 543.8} ]);
                [Bindable]
                private var nep16:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 40},
                    { habtype: "Estuarine Shoreline", Acres: 6.5},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 195},
                    { habtype: "Wetland", Acres: 85} ]);
                [Bindable]
                private var nep17:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 1109.9},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 1.14},
                    { habtype: "Estuarine Shoreline", Acres: 0.28},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0.71},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep18:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 1099},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep19:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 101.3} ]);
                [Bindable]
                private var nep20:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 98.72},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 17.99},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 106.13},
                    { habtype: "Wetland", Acres: 12.97} ]);
                [Bindable]
                private var nep21:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 9},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 3},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 2},
                    { habtype: "Upland", Acres: 1451},
                    { habtype: "Wetland", Acres: 27} ]);
                [Bindable]
                private var nep22:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 26},
                    { habtype: "Beach/Dune", Acres: 1.65},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 240.39},
                    { habtype: "Estuarine Shoreline", Acres: 314.97},
                    { habtype: "Instream", Acres: 505.87},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 1450.47},
                    { habtype: "Upland", Acres: 1176.7},
                    { habtype: "Wetland", Acres: 850.58} ]);
                [Bindable]
                private var nep23:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 43.05},
                    { habtype: "Upland", Acres: 4519},
                    { habtype: "Wetland", Acres: 3271} ]);
                [Bindable]
                private var nep24:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 1},
                    { habtype: "Coral Reef", Acres: 0.13},
                    { habtype: "Estuarine", Acres: 0},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 1},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 10} ]);
                [Bindable]
                private var nep25:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 1.6},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 7},
                    { habtype: "Riparian", Acres: 100},
                    { habtype: "Upland", Acres: 6.2},
                    { habtype: "Wetland", Acres: 0} ]);
                [Bindable]
                private var nep26:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 5.5},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 4.5},
                    { habtype: "Estuarine Shoreline", Acres: 15},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 82},
                    { habtype: "Wetland", Acres: 40} ]);
                [Bindable]
                private var nep27:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 0},
                    { habtype: "Beach/Dune", Acres: 5.1},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 23},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 4.8},
                    { habtype: "Mangrove", Acres: 3.5},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 0},
                    { habtype: "Upland", Acres: 1221},
                    { habtype: "Wetland", Acres: 17.4}]);   
                [Bindable]
                private var nep28:ArrayCollection = new ArrayCollection( [
                    { habtype: "Agriculture/Ranch Land", Acres: 67},
                    { habtype: "Beach/Dune", Acres: 0},
                    { habtype: "Coral Reef", Acres: 0},
                    { habtype: "Estuarine", Acres: 2},
                    { habtype: "Estuarine Shoreline", Acres: 0},
                    { habtype: "Instream", Acres: 0},
                    { habtype: "Island", Acres: 0},
                    { habtype: "Lake/Pond", Acres: 0},
                    { habtype: "Mangrove", Acres: 0},
                    { habtype: "Other", Acres: 0},
                    { habtype: "Riparian", Acres: 31.33},
                    { habtype: "Upland", Acres: 0},
                    { habtype: "Wetland", Acres: 74.24}]);               
                private function displayAcres(data:Object, field:String, index:Number, percentValue:Number):String {
                    var temp:String= (" " + percentValue).substr(0,6);
                    return data.habtype + ": " + '\n ' + data.Acres + " Acres" + '\n ' + temp + "%";
                //Export to PNG information
                private function saveImageAs(event:MouseEvent):void
                    var bd:BitmapData = new BitmapData(cChart.width,cChart.height);
                    bd.draw(cChart);
                    var png:PNGEncoder = new PNGEncoder();
                    var ba:ByteArray = png.encode(bd);
                    var fr:FileReference = new FileReference();
                    fr.save(ba, "nepfy11-piechart.png");
            ]]>
        </mx:Script>
        <!--mx:SeriesInterpolate id="chartChange" duration="2000" /-->
        <mx:Panel id="cChart" title="2011 Habitat Efforts" width="825" height="600" chromeColor="#527EAC" layout="vertical" color="#FFFFFF" verticalGap="10" x="15" y="15">
            <mx:HBox width="400" height="20">
                <mx:ComboBox id="filterCombo" x="140" y="140" change="changeEvt(event)" color="#000000" >
                    <mx:String>Select NEP</mx:String>
                    <mx:String>Albemarle-Pamlico Estuary Program</mx:String>
                    <mx:String>Barataria-Terrebonne Estuary Program</mx:String>
                    <mx:String>Barnegat Bay Estuary Program</mx:String>
                    <mx:String>Buzzards Bay National Estuary Program</mx:String>
                    <mx:String>Casco Bay Estuary Partnership</mx:String>
                    <mx:String>Charlotte Harbor Estuary Program</mx:String>
                    <mx:String>Coastal Bend Bays and Estuaries Program</mx:String>
                    <mx:String>Delaware Estuary Program</mx:String>
                    <mx:String>Delaware Inland Bays Estuary Program</mx:String>
                    <mx:String>Galveston Bay Estuary Program</mx:String>
                    <mx:String>Indian River Lagoon NEP</mx:String>
                    <mx:String>Long Island Sound Study</mx:String>
                    <mx:String>Lower Columbia River Estuary</mx:String>
                    <mx:String>Maryland Coastal Bays Program</mx:String>
                    <mx:String>Massachusetts Bays NEP</mx:String>
                    <mx:String>Mobile Bay Estuary Program</mx:String>
                    <mx:String>Morro Bay Estuary Program</mx:String>
                    <mx:String>Narragansett Bay Estuary Program</mx:String>
                    <mx:String>New York-New Jersey Harbor Estuary Program</mx:String>
                    <mx:String>Peconic Estuary Program</mx:String>
                    <mx:String>Piscataqua Region Estuaries Partnership</mx:String>
                    <mx:String>Puget Sound Partnership</mx:String>
                    <mx:String>San Francisco Estuary Project</mx:String>
                    <mx:String>San Juan Bay NEP</mx:String>
                    <mx:String>Santa Monica Bay Restoration Project</mx:String>
                    <mx:String>Sarasota Bay Estuary Program</mx:String>
                    <mx:String>Tampa Bay Estuary Program</mx:String>
                    <mx:String>Tillamook Estuaries Partnership</mx:String>
                </mx:ComboBox>
            </mx:HBox>
            <mx:HBox horizontalGap="20" width="822" height="535">
                <mx:PieChart id="chart" showDataTips="true" dataProvider="{ds}" width="634"  height="534" paddingTop="10" fontSize="9" fontFamily="Arial" color="#000000" textAlign="left">
                    <mx:series>
                        <mx:PieSeries id="seriesId" explodeRadius="0.06" nameField="habtype" labelPosition="callout" color="#000000" insideLabelSizeLimit="8" field="Acres" labelFunction="displayAcres">
                        </mx:PieSeries>
                    </mx:series>
                </mx:PieChart>
                <mx:Legend dataProvider="{chart}" dropShadowVisible="true" width="150" color="#000000" height="350" chromeColor="#527EAC" borderColor="#527EAC" direction="vertical"/>          
            </mx:HBox>
        </mx:Panel>
        <mx:Button x="746" y="623" label="Export to PNG" id="btnSnap" click="saveImageAs(event)"/>
        <mx:Button x="651" y="623" label="Export to PDF" click="savePDF(event)" />
    </mx:Application>
    Thanks, Alison

  • Keynote and PDF Export

    Exporting Keynote presentation in PDF via email is a great feature that has been awaited by potential business users.
    However, PDF exports from ipad do not seems to be supported by acrobat especially on PCs/windows system. Font conversion seems corrupted and text appears with bullets.
    Any hint on how to send keynote presentation converted in pdf properly ?
    Many thx

    I also ran into a bug with PDF export today. The PDF displayed properly on my mac, but when viewed on other laptops (and when uploaded to Scribd), the text was missing. :/
    Workaround was to export the keynote file to my mac, then use the desktop keynote app to re-export as PDF.

  • Single letters dropping out in PDFs exported from Indesign CS

    We are having font issues in some of our magazine's advertisements which proved very costly last month. First let me describe the work flow.
    We designed an ad in Indesign CS then exported it using the press setting in Indesign's PDF export option. Here the ad looked and printed fine. The ad was then placed in another Indesign file which was for the layout of one of our magazines. Here the ad still looked fine on screen and when printed out from Indesign. This next step is where the font issue occurs.
    When we export the the final magazine's press ready Indesign file, through the PDF press setting in Indesign again, single letters in these problem ads drop out. For example all of the Ds' in the entire ad will be missing. So a sentence in the ad that read "Dirt is Dark" will read " irt is  ark." 
    I am wondering if anyone else has had this problem occur and if they have a solution. The only thing I can think of is in the compression settings there is an option to compress text and line art. We are going to try to uncheck that box to see if it fixes the problem.
    Thank you for you help,
    Javin.

    I realized, of course, that it does make a difference. If you don't have the fonts on your system, a frequent issue with incoming ads, you couldn't embed the full font at all. You need to be sure that ads generated in CS have fully embedded fonts, not subsets, or risk dropouts. It will only happen when more than one ad uses the same font, but different glyphs.

  • PDFs exported from InDesign cannot be printed

    Our Marketing Manager is using Adobe InDesign and exports her documents to PDF. These PDFs won't print in any of our printers in the office. It spools and then gets stuck and it actually makes our HP Coloured Laser Printer throw an error (error 79) and we'll have to restart the printer due to this error. We can print other documents and other PDFs in the printer so we know it's not a printer driver issue. In fact, we have isolated the problem to only PDFs exported from InDesign. Even if we create a blank document or add just text from InDesign and export it to PDF it still won't print. Really odd.
    **I also posted this in the InDesign thread but was asked to post it here too. I tried printing the document using Adobe Acrobat and Adobe Reader with no luck. We tried printing directly from InDesign but it is inconsistent, sometimes it will print but most of the time it does not.

    Hmm. Yeah. The ID forum may be more help. Especially if it's also a problem in ID.
    My first suspect would be corrupt fonts or possibly an image file. Can you create a blank ID file with no text (maybe insert just an image or something that isn't on any of the other ID files) pdf it and print it?

  • JRE Crash with 1.5.0_13 related to printing & PDF export

    Hi,
    I'm having a problem : JRE 1.5.0 (updates 6, 10 and 13 tried) crashes under my software. The problem is encountered with printing / PDF exporting functionality through JFreeReport. Issue is encountered only with dualcore computers. Fortunately the issue isn't encountered with 1.6.0 anymore but I'd still be interested to find some workaround to make the software run with 1.5.0 also (It would be nice not to require users to have 1.6.0) Problem has been detected with both Win XP SP 2 and Vista.
    First I was suspicious because we are using one JNI library but removing that didn't help so that shouldn't be the case.
    After some searching I found a couple of JVM bugs that were marked as duplicates for http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6186524 . Those were related to 2D things and hence printing, fonts, exporting and with some cases dualcore computers were mentioned. However, that bug should be fixed in 1.5.0_10 but upgrading to 1.5.0_10 (or 1.5.0_13) didn't help so it can't be the actual bug.
    Error log, if somebody can make up something: (This error log was got when running through Eclipse with JRE set to 1.5.0_13 but error has been encountered also when running straight with just one JRE (1.5.0_XX) installed to computer.)
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x762369e6, pid=5312, tid=5188
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_13-b05 mixed mode)
    # Problematic frame:
    # C  [MSCTF.dll+0x69e6]
    ---------------  T H R E A D  ---------------
    Current thread (0x0b3f61d8):  JavaThread "AWT-Windows" daemon [_thread_in_native, id=5188]
    siginfo: ExceptionCode=0xc0000005, reading address 0x580e0e0e
    Registers:
    EAX=0x580e0e0e, EBX=0x00129f40, ECX=0x0b53f288, EDX=0x01300311
    ESP=0x0b53f24c, EBP=0x0b53f250, ESI=0x0b53f288, EDI=0x00123970
    EIP=0x762369e6, EFLAGS=0x00010202
    Top of Stack: (sp=0x0b53f24c)
    0x0b53f24c:   80004005 0b53f28c 76239ae4 580e0e0e
    0x0b53f25c:   00152fe0 00123970 76236704 00140d70
    0x0b53f26c:   013003f1 00000000 00000000 762367c8
    0x0b53f27c:   001ba198 0b8400ec 00000000 580e0e0e
    0x0b53f28c:   0b53f2d0 762391cd 00153118 00000000
    0x0b53f29c:   00129f40 00123970 764d37c0 0b53f6b8
    0x0b53f2ac:   764c5ac9 764d8f11 fffffffe 764d37c0
    0x0b53f2bc:   762367f0 0b8400e4 0b53f2d8 7623689f
    Instructions: (pc=0x762369e6)
    0x762369d6:   ff 55 8b ec 8b 45 08 85 c0 56 8b f1 89 06 74 06
    0x762369e6:   8b 08 50 ff 51 04 8b c6 5e 5d c2 04 00 90 90 90
    Stack: [0x0b500000,0x0b540000),  sp=0x0b53f24c,  free space=252k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [MSCTF.dll+0x69e6]
    C  [MSCTF.dll+0x9ae4]
    C  [MSCTF.dll+0x91cd]
    C  [MSCTF.dll+0x9bec]
    C  [MSCTF.dll+0x8e6f]
    C  [IMM32.DLL+0x3472]
    C  [USER32.dll+0x199cd]
    C  [USER32.dll+0x18e4c]
    C  [USER32.dll+0x18de1]
    C  [USER32.dll+0x19132]
    C  [USER32.dll+0x21a10]
    C  [USER32.dll+0x21ae8]
    C  [USER32.dll+0x21c03]
    C  [USER32.dll+0x23656]
    C  [ntdll.dll+0x60e6e]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  sun.awt.windows.WToolkit.eventLoop()V+0
    j  sun.awt.windows.WToolkit.run()V+69
    j  java.lang.Thread.run()V+11
    v  ~StubRoutines::call_stub
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x0c077b28 JavaThread "export-worker--0" daemon [_thread_in_native, id=6032]
      0x0c0779a0 JavaThread "Repagination-Worker" daemon [_thread_blocked, id=6016]
      0x0c077818 JavaThread "Thread-20" [_thread_blocked, id=4740]
      0x0bf45428 JavaThread "Timer-0" daemon [_thread_blocked, id=4456]
      0x0bfee410 JavaThread "GC Daemon" daemon [_thread_blocked, id=4368]
      0x0bfee288 JavaThread "RMI RenewClean-[192.168.1.155:49177]" daemon [_thread_blocked, id=5460]
      0x00f718a0 JavaThread "DestroyJavaVM" [_thread_blocked, id=5212]
      0x0bfcba50 JavaThread "TimerQueue" daemon [_thread_blocked, id=4704]
      0x0b49d470 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2696]
      0x0b4a6288 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=632]
    =>0x0b3f61d8 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5188]
      0x0b3f6050 JavaThread "AWT-Shutdown" [_thread_blocked, id=3368]
      0x0103ef78 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=416]
      0x0103e338 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1216]
      0x0103d9b0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5592]
      0x010333e8 JavaThread "Finalizer" daemon [_thread_blocked, id=4820]
      0x01030e10 JavaThread "Reference Handler" daemon [_thread_blocked, id=4144]
    Other Threads:
      0x0102be10 VMThread [id=936]
      0x00fd8ba8 WatcherThread [id=1316]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation   total 2304K, used 1239K [0x03100000, 0x03370000, 0x035e0000)
      eden space 2112K,  49% used [0x03100000, 0x03205da8, 0x03310000)
      from space 192K, 100% used [0x03340000, 0x03370000, 0x03370000)
      to   space 192K,   0% used [0x03310000, 0x03310000, 0x03340000)
    tenured generation   total 29228K, used 24017K [0x035e0000, 0x0526b000, 0x07100000)
       the space 29228K,  82% used [0x035e0000, 0x04d544d0, 0x04d54600, 0x0526b000)
    compacting perm gen  total 15616K, used 15552K [0x07100000, 0x08040000, 0x0b100000)
       the space 15616K,  99% used [0x07100000, 0x08030000, 0x08030000, 0x08040000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040d000      C:\Program Files\Java\jre1.5.0_13\bin\javaw.exe
    0x776b0000 - 0x777ce000      C:\Windows\system32\ntdll.dll
    0x764b0000 - 0x76588000      C:\Windows\system32\kernel32.dll
    0x76660000 - 0x7671f000      C:\Windows\system32\ADVAPI32.dll
    0x777f0000 - 0x778b3000      C:\Windows\system32\RPCRT4.dll
    0x76980000 - 0x76a1e000      C:\Windows\system32\USER32.dll
    0x76b90000 - 0x76bdb000      C:\Windows\system32\GDI32.dll
    0x76360000 - 0x7640a000      C:\Windows\system32\MSVCRT.dll
    0x76b70000 - 0x76b8e000      C:\Windows\system32\IMM32.DLL
    0x76230000 - 0x762f7000      C:\Windows\system32\MSCTF.dll
    0x764a0000 - 0x764a9000      C:\Windows\system32\LPK.DLL
    0x76720000 - 0x7679d000      C:\Windows\system32\USP10.dll
    0x10000000 - 0x10017000      C:\Windows\system32\APSHook.dll
    0x6d640000 - 0x6d7dd000      C:\Program Files\Java\jre1.5.0_13\bin\client\jvm.dll
    0x752d0000 - 0x75303000      C:\Windows\system32\WINMM.dll
    0x76a20000 - 0x76b64000      C:\Windows\system32\ole32.dll
    0x76170000 - 0x761fc000      C:\Windows\system32\OLEAUT32.dll
    0x75290000 - 0x752c8000      C:\Windows\system32\OLEACC.dll
    0x75da0000 - 0x75dcc000      C:\Windows\system32\apphelp.dll
    0x6d290000 - 0x6d298000      C:\Program Files\Java\jre1.5.0_13\bin\hpi.dll
    0x75f60000 - 0x75f67000      C:\Windows\system32\PSAPI.DLL
    0x6d610000 - 0x6d61c000      C:\Program Files\Java\jre1.5.0_13\bin\verify.dll
    0x6d310000 - 0x6d32d000      C:\Program Files\Java\jre1.5.0_13\bin\java.dll
    0x6d630000 - 0x6d63f000      C:\Program Files\Java\jre1.5.0_13\bin\zip.dll
    0x6d000000 - 0x6d16a000      C:\Program Files\Java\jre1.5.0_13\bin\awt.dll
    0x734b0000 - 0x734f1000      C:\Windows\system32\WINSPOOL.DRV
    0x74b80000 - 0x74bbf000      C:\Windows\system32\uxtheme.dll
    0x003e0000 - 0x003f8000      C:\Program Files\Hewlett-Packard\IAM\bin\ItClient.dll
    0x76300000 - 0x76355000      C:\Windows\system32\SHLWAPI.dll
    0x74f50000 - 0x750e4000      C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll
    0x74ec0000 - 0x74f46000      C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6000.16386_none_87e0cb09378714f1\Comctl32.dll
    0x71cb0000 - 0x71cbc000      C:\Windows\system32\dwmapi.dll
    0x76be0000 - 0x776ae000      C:\Windows\system32\shell32.dll
    0x6d240000 - 0x6d290000      C:\Program Files\Java\jre1.5.0_13\bin\fontmanager.dll
    0x6d4d0000 - 0x6d4e3000      C:\Program Files\Java\jre1.5.0_13\bin\net.dll
    0x76200000 - 0x7622d000      C:\Windows\system32\WS2_32.dll
    0x777e0000 - 0x777e6000      C:\Windows\system32\NSI.dll
    0x755e0000 - 0x7561b000      C:\Windows\system32\mswsock.dll
    0x75640000 - 0x75646000      C:\Windows\System32\wship6.dll
    0x6d4f0000 - 0x6d4f9000      C:\Program Files\Java\jre1.5.0_13\bin\nio.dll
    0x6d3d0000 - 0x6d3ef000      C:\Program Files\Java\jre1.5.0_13\bin\jpeg.dll
    0x75360000 - 0x75398000      C:\Windows\system32\rsaenh.dll
    0x75e20000 - 0x75e3e000      C:\Windows\system32\USERENV.dll
    0x75e00000 - 0x75e14000      C:\Windows\system32\Secur32.dll
    0x74a70000 - 0x74a7f000      C:\Windows\system32\NLAapi.dll
    0x75800000 - 0x75819000      C:\Windows\system32\IPHLPAPI.DLL
    0x757c0000 - 0x757f5000      C:\Windows\system32\dhcpcsvc.DLL
    0x75ac0000 - 0x75aeb000      C:\Windows\system32\DNSAPI.dll
    0x757b0000 - 0x757b7000      C:\Windows\system32\WINNSI.DLL
    0x75790000 - 0x757b0000      C:\Windows\system32\dhcpcsvc6.DLL
    0x727e0000 - 0x727e8000      C:\Windows\System32\winrnr.dll
    0x76930000 - 0x76979000      C:\Windows\system32\WLDAP32.dll
    0x727d0000 - 0x727df000      C:\Windows\system32\napinsp.dll
    0x72070000 - 0x72082000      C:\Windows\system32\pnrpnsp.dll
    0x727c0000 - 0x727cc000      C:\Windows\system32\wshbth.dll
    0x767a0000 - 0x76928000      C:\Windows\system32\SETUPAPI.dll
    0x75220000 - 0x75226000      C:\Windows\System32\wshtcpip.dll
    0x728d0000 - 0x728d6000      C:\Windows\system32\rasadhlp.dll
    0x6d1c0000 - 0x6d1e3000      C:\Program Files\Java\jre1.5.0_13\bin\dcpr.dll
    0x6d5f0000 - 0x6d5f6000      C:\Program Files\Java\jre1.5.0_13\bin\rmi.dll
    0x0b990000 - 0x0b9a1000      C:\Eclipse workspace\fenix\lib\ICE_JNIRegistry.dll
    0x760f0000 - 0x76164000      C:\Windows\system32\COMDLG32.DLL
    0x71610000 - 0x71617000      C:\Windows\system32\spool\DRIVERS\W32X86\3\SDNT5UI.DLL
    0x0bac0000 - 0x0bad2000      C:\Windows\system32\spool\DRIVERS\W32X86\3\SDDM32.DLL
    0x71130000 - 0x71145000      C:\Windows\system32\spool\DRIVERS\W32X86\3\ZSPOOL.dll
    0x710e0000 - 0x710ea000      C:\Windows\system32\spool\DRIVERS\W32X86\3\ZGDI32.dll
    0x70810000 - 0x70821000      C:\Windows\system32\MSVCRT40.dll
    0x715d0000 - 0x715da000      C:\Windows\system32\spool\DRIVERS\W32X86\3\ZTAG32.dll
    0x75650000 - 0x75658000      C:\Windows\system32\VERSION.dll
    0x71060000 - 0x71080000      C:\Windows\system32\spool\DRIVERS\W32X86\3\SDDMUI.DLL
    0x0bae0000 - 0x0bae7000      C:\Windows\system32\spool\DRIVERS\W32X86\3\ZLANG.dll
    0x0bbc0000 - 0x0bbe4000      C:\Windows\system32\spool\DRIVERS\W32X86\3\SR32.dll
    0x0bb70000 - 0x0bb7d000      C:\Windows\system32\spool\DRIVERS\W32X86\3\IMFNT5.DLL
    0x71600000 - 0x71608000      C:\Windows\system32\spool\DRIVERS\W32X86\3\Imf32.dll
    0x76410000 - 0x76494000      C:\Windows\system32\CLBCatQ.DLL
    0x6de10000 - 0x6e033000      C:\Windows\system32\NetworkExplorer.dll
    0x742c0000 - 0x74377000      C:\Windows\system32\PROPSYS.dll
    0x76590000 - 0x7665f000      C:\Windows\system32\WININET.dll
    0x777d0000 - 0x777d3000      C:\Windows\system32\Normaliz.dll
    0x75f70000 - 0x75fb5000      C:\Windows\system32\iertutil.dll
    0x759a0000 - 0x759b4000      C:\Windows\system32\MPR.dll
    0x71940000 - 0x71952000      C:\Windows\System32\ntlanman.dll
    0x75a50000 - 0x75aba000      C:\Windows\System32\NETAPI32.dll
    0x71a00000 - 0x71a08000      C:\Windows\System32\drprov.dll
    0x719d0000 - 0x719df000      C:\Windows\System32\davclnt.dll
    0x734a0000 - 0x734aa000      C:\Windows\system32\cscapi.dll
    0x707e0000 - 0x707e9000      C:\Windows\system32\LINKINFO.dll
    0x6c460000 - 0x6c519000      C:\Windows\system32\spool\DRIVERS\W32X86\3\unidrvui.dll
    0x6bdd0000 - 0x6be8b000      C:\Windows\system32\spool\DRIVERS\W32X86\3\mxdwdrv.dll
    0x6c350000 - 0x6c365000      C:\Windows\system32\FontSub.dll
    VM Arguments:
    jvm_args: -Djava.library.path=c:/Eclipse workspace/fenix/lib -Xbootclasspath/a:C:\Eclipse workspace\fenix\rsrc\images\buttons;C:\Eclipse workspace\fenix\rsrc\images\buttons\general;C:\Eclipse workspace\fenix\rsrc\images\buttons\report
    java_command: XXX
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\Program Files\Java\jre1.6.0_03\bin\client;C:\Program Files\Java\jre1.6.0_03\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Hewlett-Packard\IAM\bin
    USERNAME=XXX
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 72 Stepping 2, AuthenticAMD
    ---------------  S Y S T E M  ---------------
    OS: Windows Vista Build 6000
    CPU:total 2 (cores per cpu 2, threads per core 1) family 15 model 72 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnowext, 3dnow
    Memory: 4k page, physical 1964736k(863916k free), swap 4159556k(2569432k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_13-b05) for windows-x86, built on Sep 25 2007 19:11:52 by "java_re" with MS VC++ 6.0

    This looks like [bug 6754141|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6754141] in the just-in-time compiler. If you have a support contract you can escalate this to get a fix in a jdk1.5.0 update. Alternatively, there do not seem to be any reports of this in jdk6, so you could try a recent jdk6 update (e.g., jdk6 update 17).

  • Windows vista ultimate 64 bit PDF export error

    Hi there, I'm using diadem 11.0 and  i have a big problem with my new os.
    When i try to export a report in pdf i get a print error in the status of the "diadem pdf export" printer.
    Any idea or solution for fix this problem ?
    Solved!
    Go to Solution.

    Thanks for the support Brad, i have tried to download and install diadem 11.1 but  it didn't solve the problem.
    After that i've tried to search in the amyuni forum for a solution and i found out this (it solved my problem)
    Windows Vista:
    Make sure that you are logged in as Windows administrator.
    Click the Windows button and click Printers.
    Right-click the Diadem pdf Export and select Properties
    Click the Ports tab, then click the Add Port button.
    Note: If the Ports tab is greyed out, right-click the Diadem Pdf Export icon and select Run as admin.
    Select Local Port and click the New Port button.
    Enter PDF1 for the new port name and click OK. Close the Printer Ports window.
    Put a checkmark in the box next to the PDF1 port if it is not already checked.
    Click on the Advanced tab.
    Select the Spool print documents radio button to make the options below it clickable.
    Clear (uncheck) the box labeled Enable advanced printing features by clicking it.
    Select the Print directly to printer radio button to make the options below not clickable.
    Click the Apply button, then click OK.
    Important: In order for the changes to take effect, you must restart your computer.
    Reboot your computer and then try to print, email, or create a pdf from Diadem.
    Regards,
    Ierman Gert

  • Problem printing pdfs exported from IDCS3 to hp color laserjet 2550L

    Since upgradingn to IDCS3, whenever I print a pdf exported from ID to my hp color laserjet 2550L, the graphics print with a red overlay and other colors change as well (black type prints brown, blue prints maroon). If I print the file to a .ps file, then distill it, I don't have the problem. If possible, I prefer to export because it's quicker. Is there a fix to this?
    Thanks in advance!

    Check the HP site for a newer driver for your printer.

  • Problem with PDF export and embedded font (characters disappear)

    Designer: Crystal Reports 2008 SP 2
    Engine: CR4E 2.0 SP2 (runtime_12.2.203)
    Hi there!
    we found a problem in the pdf export. It seems like there would be a problem with the embedded fonts, the problem is as follows:
    Rpt file with, for example only a text box which contains the german string " Änderungs Schlüssel ".
    Export the Rpt file with CR4E to a pdf file.
    When we open the pdf file in Adope Reader 8, the text appears to be correct,
    but if we print the PDF file from the Adope Reader, the text changes to " nderungs Schl sselu201C,
    here we are missing ther german umlaute.
    When we open the file for example with an alternative PDF reader like Foxit Reader, there they are also missing.
    After i found some posts here in the forum, there are people facing the same problem, since i couldn't find a solution in the forum, we build a little workaround for it that works for us.
    For all of you that have the same problem here the workaround:
    We used the IText JAVA library, this jar can can help as to fix the PDF file so the text is displayed correctly.
    Here the code:
    ReportClientDocument doc = new ReportClientDocument();
    doc.setReportAppServer(ReportClientDocument.inprocConnectionString);
    doc.open("C:\XY.rpt", OpenReportOptions._openAsReadOnly);
    //... database logon,.....
    InputStream inputStream = doc.getPrintOutputController().export(ReportExportFormat.PDF);
    inputStream = PDFHealer.heal(inputStream);
    //... write the stream some where

    The helper class using IText:
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.pdf.PdfContentByte;
    import com.lowagie.text.pdf.PdfImportedPage;
    import com.lowagie.text.pdf.PdfReader;
    import com.lowagie.text.pdf.PdfWriter;
    public class PDFHealer
       public static InputStream heal(InputStream in) throws DocumentException, IOException
          try
             ByteArrayOutputStream out = new ByteArrayOutputStream();
             PdfReader reader = new PdfReader(in);
             // we retrieve the total number of pages
             int n = reader.getNumberOfPages();
             // step 1: creation of a document-object
             Document document = new Document();
             // step 2: we create a writer that listens to the document
             PdfWriter writer = PdfWriter.getInstance(document, out);
             // step 3: we open the document
             document.open();
             // step 4: we add content
             PdfContentByte cb = writer.getDirectContent();
             int i = 0;
             while( i < n )
                document.newPage();
                i++;
                PdfImportedPage page1 = writer.getImportedPage(reader, i);
                cb.addTemplate(page1, 0, 0);
             // step 5: we close the document
             document.close();
             ByteArrayInputStream ret = new ByteArrayInputStream(out.toByteArray());
             out.close();
             return ret;
          finally
             in.close();

  • Crystal Reports for VS 2010 corrupts "some" Thai chars on PDF Export

    Any Thai character that contains a symbol above it (like an umlat in English) gets corrupted when exporting a report to PDF, yet the same report can be exported to Excel or Word without any issue.
    See the following character - once with a symbol above one without:
    ล้ ล
    The PDF file will not display the first character - instead it displays the second character overlayed on a box (like you get when the font does not contain the required character)
    If I create a text field in the Crystal designer, it does the same thing - but when I right click and edit, it displays correctly - until I click out of the field when the problem returns. So this suggests the problem is before the PDF export and maybe with the designer - but then why does it work if i export to Word?
    I have tried may different fonts - including those specifically recommended and used by the Thais, but all have the same issue.
    My work around at the moment is to use Word instead of PDF, as I do not believe there is a configuration change I can make that will resolve the issue, but would love to hear otherwise.
    I am using Crystal Reports for Visual Studio 2010 version 13 running on Windows 7 x64. I have a beta 2 download of v14, but it requires a key code which i do not have, so as yet ahave been unable to verify if this issue is resolved in that version.
    if anyone knows otherwise, please let me know
    Cheers
    Jed

    Thanks Don,
    (Good to know that version 13 I am running is the correct one)
    I have tried many UTF-8 fonts, with largely similar results, but this testing here is with Cordia New - a font largely aimed at Thai Language and the one our Thai customers always use.
    I have confirmed that right click and export from the IDE still shows the box on certain characters - but note that the box does not replace these characters (as would be the case if they were missing) but rather overlays them - which is why my subject includes the word 'corrupt'
    All testing so far in on my Windows 7 development machine - so no user issues are involved
    The code if fairly simple at this stage - define and load a data set - then link it to the report and use the built in export to disk functions:
                    OutboundSummary rpt = new OutboundSummary();
                    rpt.SetDataSource(outboundSummary);
                    string tempDir = Environment.GetEnvironmentVariable("TEMP") + "
                    string filename = tempDir + DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss");
                    rpt.ExportToDisk(ExportFormatType.PortableDocFormat, filename + ".pdf");
                    rpt.ExportToDisk(ExportFormatType.WordForWindows, filename + ".doc");
    If anyone wanted to verify, here is a piece of Thai text that will show the problem
    ผลรวมแฟกซ์ที่ยังอยู่ในคิว
    To better illustrate the problem, the attached image will help
    [IMG]http://i55.tinypic.com/hweh42.jpg[/IMG]
    I am coming to the conclusion that perhaps these characters are not single characters - at least do not appear as such with each font - and perhaps Windows does some magic to make them appear correctly. I can see that Word automatically converts them to a suitable font - i.e. a mixed language text file imports into word with different fonts for different languages - and you cannot change the font to one that does not support the language. I can specify Arial from Crystal which does not contain thai characters at all - but export to word and they show correctly.
    Crystal spits the data out and Word converts it correctly, but acrobat does not - so maybe it is their fault?
    I have all language packs on my machine - and doing Chinese next suggests that even if I find a thai font that worked, it would not work in chinese, so am thinking word or rtf might be the winner.
    Cheers
    Jed

  • PDF Export Looks Good at 150% Zoom, but Bad on 100%

    Hi,
    I'm extremely new to InDesign, and am trying to make a colourful resume/portfolio design using ID, but am running into an issue already with exporting via PDF.
    The original issue was that the logo (which has my name and occupation(s)) were coming out SUPER blurry as a PSD I "placed" in the ID document (I tried PNG and Photoshop PDF as well, to no improvement).  After a lot of struggling with export options, I went back to PhotoShop and changed the PSD from 72 ppi to 300 ppi, which increased the dimensions of the PSD but improved the quality significantly. 
    However, now I find that the PDF file looks great in Acrobat on larger zooms (150% and 200%), but bad on 100% (where it seems like it's being "downscaled," so the smaller text looks awfully compressed).  I've experimented with ppi's in between (240, 180, etc), but it ends up becoming "blurry" at 100%, like the 72 ppi setting.
    Any ideas on how I can fix this so the logo looks crisp at 100% on a PDF export?
    Thanks,
    RTL
    Image (full-size): http://www.starrcadia.com/logo2.png

    Hi Willi,
    I tried a PNG once earlier (when I was still trying to fix the 72 ppi logo), but since it had no improvement, I abandoned the PNG way before (it's a PSD in those screenshots above).
    The PSD is still layered in Photoshop.  I took your advice and imported it into Illustrator, and saved as an AI file, and then placed that in the ID, but it wasn't an improvement.  I notice that everything (including text I wrote in ID) looks far superior on 150% zoom in Acrobat, and perfect on 200%, but 100% seems to downscale all of the content (except the background).
    Thanks!   

  • PDF export problem in Pages/Keynote/Preview

    I am having some problems with PDF exports (and "Print as PDF")  from Pages (as well as Keynote and Preview).  Here is my situation:
    I am creating a PDF of a barchart+legend from the program Mathematica.  I suspect the way the exported PDF is formatted is that the chart and legend are two blocks within the PDF.  This PDF opens perfectly in Preview and Adobe Reader, and imports perfectly into Pages and Keynote.  However, when the Pages/Keynote document is exported to PDF or printed to PDF, the resulting file opens fine in Preview but not in either the Mac or Windows version of Adobe Reader (part or all of the image fails to appear with a generic "An error exists on this page, please contact the author of this document to correct this problem" error message).  This also happens with the PDF is exported/printed as PDF from Preview itself - the resulting file opens fine in Preview but not with Acrobat.
    Any suggestions?  While I could reconstruct the barcharts individually in Pages itself, for the sorts of documents I'm working on I could easily have dozens of PDFs to import for a single project, and it's much easier to export the files from Mathematica as the analysis is done than rebuild each one from scratch.

    As far as I know, there is no provision for such settings in these programs.
    Developer documentation for ICC colour management in Firefox 2, Firefox 3 and Firefox 3.5, see below. Firefox 3 has ICC colour management disabled by default. Firefox 3.5 has ICC colour management for images within which there is embedded an ICC source colour space profile. It is possible to set Firefox to colour manage the application windows as well as images with embedded ICC profiles. The developer documentation discusses how to do this in what sounds suspiciously like a command line / terminal tool, and also how to point Firefox 3.5 to the display profile. This in turn sounds suspiciously like Firefox 3.5 is unable to talk to the system level service and ask for the display profile automatically.
    Camino and Opera ... I'll pass. I suspect it's more of the same mess.
    /hh
    Reference:
    https://developer.mozilla.org/En/ICCcolor_correction_inFirefox

  • Generate a PDF export and getting the file or the bytestream to modify it

    Hi everybody
    I have a web dynpro application and want to get the bytestream or the PDF file itself.
    Is there a function (RFC, J2EE-Method, ABAP methode/class) where I can say
    "Hey function, generate a PDF export of a BI report and save the PDF file <br>somewhere in the KM or return the bytestream of the PDF"
    I must be able to define following parameters
    -BI template name
    -values for the selection mask (the same as the BEx BI-Commands to prefill a field in the selection mask)
    -KM path + filename (if the function saves the file in the KM)
    What I already tried:
    Broadcast to KM
    I can start the broadcast automatically using the report RSRD_BROADCAST_STARTER. But the problem is that I can't generate a broadcast setting and so I'm not able to define the filename and selectionmask data dynamically.
    Package RSRD
    When you enter the transaction SE80 and look for the package "RSRD" there are a lot of interesting classes and methods. But I couldn't figure out how to call them to generate a PDF export of a BI report.
    FM RSADOB_PDFREPORT_GENERATE
    This function module have all the parameters I wish. The problem is that it does not work anymore. It's just an internal test for the SAP guys themselves.
    So ...
    Have anybody an idea how to solve this?
    How to generate a PDF export of a BI report and fill the selection mask and get the PDF (as bytecode or file in the KM) ?
    Thanks lot
    Klaudio

    hi,
    Like you said.. steps are simple and clearly mentioned in guide.
    1. create a variable of type string
    2. after configuring the file adapter , go to corresponding receive activity , go to properties tab
    3. search for a property with name as jca.file.FileName . This basically keeps track of file name
    4. for this property, give the value as name of variable created in step 1 above
    5. Use this variable anywhere in assign / transform
    HTH,
    Ketan

Maybe you are looking for

  • JComboBox popup list remains open after losing keyboard focus

    Hi, I have noticed a strange JComboBox behavior. When you click on the drop down arrow to show the popup list, and then press the Tab key, the keyboard focus moves to the next focusable component, but the popup list remains visible. I have included a

  • TS3999 Calendars don't sync between Iphone and Ipad.

    When a calendar entry is added from my wife's phone to mine there is no entry, but it's on my mini-pad instead. Why is it on one device and not the other? I have chosen sync and all events in settings , but is still doesn't work for both devices, onl

  • JDBC API ( JSR 169 ) Implementation for accessing oracle lite database

    We are developing an application using IBM J9 (CDC and Foundation Profile) on Pocket PC 2003 environment with SWT as the front end development. We are using Oracle Lite 9i as the Client database. We have sucessfully installed Oracle Lite and was able

  • Using a java variable in jsp-Reports?

    Hello everyone, is it possible to use a java variable in the xml-definition of a report? Something like <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %> <% String someSqlStatement="select * from emp"; %> <rw:report id="myReport"> <rw:obje

  • Complain

    To, Nokia Company Subject: - Complain of Phone model nokia asha 311 Hi, I am Avinash sawant customer of nokia phone model nokia asha 311.I have purchase handset on 30th march 2013 since i am having problem of network drop, call drop, phone restart, p