1 Reply Latest reply on Jan 20, 2012 5:40 AM by Bernd Alheit

    PDF in Editor

    Pancake2112 Level 1

      Dear Acrobat-Junkies!

      I'm researching for a security-project at school an I hope you can help me.

      When I open an pdf-File with an  text-editor, I see the following code:

       

      %PDF-1.5
      %¡³Å×
      1 0 obj
      <</Type/Catalog/Pages 2 0 R /Lang(de-AT)/StructTreeRoot 8 0 R /MarkInfo<</Marked true>>/AcroForm<</Fields[]>>/AA<</WC 18 0 R >>/Names<</JavaScript 20 0 R >>>>
      endobj
      2 0 obj
      <</Type/Pages/Count 1/Kids[ 3 0 R ]>>
      endobj
      3 0 obj
      <</S(JavaScript)/JS(app.alert\("Hii"\);)>>
      endobj
      4 0 obj
      <</Type/Page/Parent 2 0 R /Resources<</Font<</F1 5 0 R >>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/MediaBox[ 0 0 595.32 841.92]/Contents 4 0 R /Group<</Type/Group/S/Transparency/CS/DeviceRGB>>/Tabs/S/StructParents 0>>
      endobj
      5 0 obj
      <</Filter/FlateDecode/Length 136>>stream
      xœSÐ P°±Ñ÷uötQ0°³SprqVp
      áåÒw3T04Ô30Q Iãå2T0
      
      endobj
      10 0 obj
      <</Footnote/Note/Endnote/Note/Textbox/Sect/Header/Sect/Footer/Sect/InlineShape/Sect/Annotation/Sect/Artifact/Sect/Workbook/Document/Worksheet/Part/Macrosheet/Part/Chartsheet/Part/Dialogsheet/Part/Slide/Part/Chart/Sect/Diagram/Figure>>
      
      endobj
      11 0 obj
      <</Nums[ 0 13 0 R] >>
      
      endobj
      12 0 obj
      <</P 8 0 R/S/Part/Type/StructElem/K[ 12 0 R] >>
      
      endobj
      13 0 obj
      <</P 11 0 R/S/P/Type/StructElem/K[ 0] /Pg 3 0 R>>
      
      endobj
      14 0 obj
      [ 12 0 R] 
      
      endobj
      15 0 obj
      [ 226 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 623 0 0 0 0 0 0 0 0 0 0 0 0 0 0 890 0 0 0 0 0 0 0 0 0 0 0 0 525 498 0 0 0 0 0 0 230 0 0 527 0 0 349]
      endobj
      16 0 obj
      <</Filter/FlateDecode/Length 78438/Length1 171548>>stream
      endstream
      endobj
      18 0 obj
      <</S(JavaScript)/JS(var result = app.popUpMenu\("a", "b", "c"\);\r\napp.alert\(result\);)>>
      endobj
      19 0 obj
      <</Type/Action/S/JavaScript/JS(function Hallo\(\)\r\n{\r\n  window.open\("www.google.at"\);\r\n})>>
      endobj
      20 0 obj
      <</Names[]>>
      endobj
      21 0 obj
      <</Length 66/Filter/FlateDecode>>stream
      xœK+ÍK.ÉÌÏSðHÌÉÉ×ÐäåªæåRPÈH--IU°UÈK-WpI,IÕд     '  è%æ¤ •h€ € k §Ï Ö
      endstream
      endobj
      xref
      0 22
      0000000000 65536 f
      0000000017 00000 n
      0000000194 00000 n
      0000000250 00000 n
      0000000487 00000 n
      0000000695 00000 n
      0000000865 00000 n
      0000001104 00000 n
      0000001321 00000 n
      0000001430 00000 n
      0000001685 00000 n
      0000001728 00000 n
      0000001797 00000 n
      0000001868 00000 n
      0000000000 00000 f
      0000001900 00000 n
      0000002104 00000 n
      0000080632 00000 n
      0000080694 00000 n
      0000080805 00000 n
      0000080924 00000 n
      0000080956 00000 n
      trailer
      <</Root 1 0 R /Info 7 0 R /ID[(Fexs  ¸L˜ŸµqË Æh)(Fexs  ¸L˜ŸµqË Æh)]/Size 22>>
      startxref
      81094
      %%EOF
      

      Can you please tell me what this means? And where can I insert JavaScript code?

      With kind regards, Pancake