3 Replies Latest reply on Mar 11, 2008 11:44 PM by dewie_01

    pdf in new window full width and height

    dewie_01
      Hi i managed to create a new window and add a pdf to it :

      var pdf = new air.HTMLLoader();
      pdf.height = 600;
      pdf.width = 400;
      pdf.load(request);
      mywin = window.open("", "pdfWindow","height=600,width=400,top=10,left=10");
      mywin.nativeWindow.stage.addChild(pdf)


      But i would like to make the pdf scale to the width and height of the window , i tried width = '100%' but then it doesn't show a pdf

      for the current result see :


      Screen