<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Camera App</AppTitle>
	<DesignDeviceName>GenericPhone</DesignDeviceName>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>320</PageWidth>
	<PageHeight>480</PageHeight>
	<AutoSizeWidth>True</AutoSizeWidth>
	<AutoSizeHeight>True</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>MobileApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<MobileBuildTarget>E:\Camera App.zip</MobileBuildTarget>
	<LanguageCode>en</LanguageCode>
	<MobileID>neo2.camera.com</MobileID>
	<AuthorEmail>asmatqatea@gmail.com</AuthorEmail>
	<MobileOSTypes>[AndroidOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<CustomHeadMetadata>&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;cordova.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
    // Wait for device API libraries to load
    //
    function onLoad() {
        document.addEventListener(&quot;deviceready&quot;, onDeviceReady, false);
    }
    // device APIs are available
    //
    function onDeviceReady() {
         function createPDF(){
         var pdfer = document.getElementById(&quot;pdfcode&quot;).value;

         let options = {
                documentSize: &apos;A4&apos;,
                type: &apos;share&apos;
              }

        pdf.fromData(pdfer, options)
        .then((stats)=&gt; console.log(&apos;status&apos;, stats) )   // ok..., ok if it was able to handle the file to the OS.
        .catch((err)=&gt;console.err(err))
         }
        document.getElementById(&quot;demo&quot;).addEventListener(&quot;click&quot;, createPDF);

        // Now safe to use device APIs
        document.addEventListener(&quot;backbutton&quot;, function (e) {
            e.preventDefault();
        }, false );
    }
&lt;/script&gt;</CustomHeadMetadata>
	<CustomBodyMetadata>&lt;body onload=&quot;onLoad()&quot;&gt;</CustomBodyMetadata>
	<startup>NeoScriptToJS</startup>
	<Components>
		<FunctionList name="Subroutines"/>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<pageenter>SetVar [x] &quot;&lt;html&gt;&lt;h1&gt;Hello World&lt;/h1&gt;&lt;/html&gt;&quot;</pageenter>
					<Components>
						<PushButton id="demo">
							<left>96px</left>
							<top>331px</top>
							<width>138px</width>
							<height>46px</height>
							<caption>PDF</caption>
							<kind>danger</kind>
							<click>BEGINJS
var a =&apos;&lt;html&gt;&lt;h1&gt;Hello World&lt;/h1&gt;&lt;/html&gt;&apos;;
createPDF(a);

ENDJS</click>
						</PushButton>
						<TextArea id="pdfcode">
							<left>24px</left>
							<top>90px</top>
							<width>270px</width>
							<height>188px</height>
							<variable>x</variable>
						</TextArea>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>320px</width>
							<height>480px</height>
							<close_button>False</close_button>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
