Women in Technology

Hear us Roar



Article:
  Dynamically Creating PDFs in a Web Application
Subject:   some error
Date:   2005-12-27 05:15:24
From:   firdose
Hi,
i download the total source code and deploy in Tomcat5.5 .when i will try to execute PDFServlet.java servlet file that time i am not getting the exact output. The explorer is printing some symbols only.


%PDF-1.4 %⣏ӊ2 0 obj <>stream x???Ms?0?*=?c}웚$mnNMz퐐?;?M��k???阱5~?Wˋ?ᵘ#?F p??F??ܨV$?V@饀1?1? ???^{?b?�� ??!▌B"┴Bb恜?A?#x틾[1??r} ^z?괒MW?N?(O��%Ƀ ??^?H?8??????_?ϟ ??W?Z?ڂֈT?~?鐙??-ԩ%��}+?ߥPᶶ~7 ?۹��??p+2е?? ś}3v?>9ħaN?Aԏ?Zlঘf??DVY??<䡳??:,?鳸?#?̅?̏??ا��?Up??= ??I??D?ݢ?zmo:U$oGaYFx??. 8=͊W^?ϲV⏚???<0fܽ?e?????Ť�?$[??*dn[��??ܥ3瑌?׹ۈ?h]{?̒Ҿ]]uӠn{Q??zf 旖 ?̤i3:?݆栖8ij?׻?͛N5??)恵??+7?ҍҼoDۚVtȫSL?鏬?>>>/MediaBox[0 0 612 792]>> endobj 5 0 obj <>stream x???Qo?0?߹?? ?>>>/MediaBox[0 0 612 792]>> endobj 7 0 obj <>stream x??P˪??9(]?,ɽzl?~??68v㼺?SX?c%?Ȣ??? '(?? ?Ȍဧ킣?࣊?_baŖN傄Ի$'ؤ?ָRЌ??Ɩ>>>/MediaBox[0 0 612 792]>> endobj 1 0 obj<> endobj 3 0 obj<> endobj 9 0 obj<> endobj 10 0 obj<> endobj xref 0 11 0000000000 65535 f 0000002069 00000 n 0000000015 00000 n 0000002156 00000 n 0000000774 00000 n 0000000930 00000 n 0000001478 00000 n 0000001634 00000 n 0000001913 00000 n 0000002218 00000 n 0000002262 00000 n trailer <]/Root 9 0 R/Size 11/Info 10 0 R>> startxref 2549 %%EOF



this is the output i am getting.please let me know the mistakes. i am waiting for your great response.


Thanks & Regards,
-Yesdani

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • some error
    2006-06-20 23:35:05  Althaf.sk [View]

    change the setContentType to

    response.setContentType("application/download");
    or
    response.setContentType("application/binary");

    it will works fine.
    • some error
      2010-01-26 08:26:26  LadyIvy [View]

      I've got the same problem but these two solutions didn't work.....