Sign In  Sign Up Live-Chat

generated pdf doesn't open on acrobat reader 7

Last post 08-07-2008, 8:43 AM by dmark. 13 replies.
Sort Posts: Previous Next
  •  04-09-2008, 7:11 AM 121396

    generated pdf doesn't open on acrobat reader 7

    Attachment: Present (inaccessible)
    Hi,

    I'm currently using .net 2 dll version 3.6.2.0.

    I used the attached code to generate pdf and use the following code to save the pdf:
    Me.Response.Clear()
    pdf.Save("rop_export.pdf", SaveType.OpenInAcrobat, Me.Response)

    The generated file opens fine on acrobat reader 8 but doesn't open on acrobat reader 7 with the following message:
    "There was an error opening this document. The file is damaged and could not be repared".

    I tried putting the image of the generated pdf using bind html, as a normal paragraph and as a header, and all seems to fail on acrobat reader 7.

    can we find a solution please?

    thanks
    Filed under: Aspose.PDF
     
  •  04-09-2008, 10:09 AM 121436 in reply to 121396

    Re: generated pdf doesn't open on acrobat reader 7

    Hi,

    I have tested your code but was not able to reproduce the error. I used dummy data to generate the html according to your code and tested the pdf with both Adobe Reader 7 and 8 but there was no problem.

    Can you please save your HTML to a file and send that to us so we can test it. Also send us the pdf file that you get.

    Thanks.

     
  •  04-09-2008, 10:26 AM 121441 in reply to 121436

    Re: generated pdf doesn't open on acrobat reader 7

    Attachment: Present (inaccessible)
    this is the html generated
     
  •  04-09-2008, 10:27 AM 121443 in reply to 121436

    Re: generated pdf doesn't open on acrobat reader 7

    Attachment: Present (inaccessible)
    and this is the pdf generated.

    And if you still can't reproduce the problem could you attach the dll that you have used please.

    Thanks
     
  •  04-09-2008, 1:54 PM 121470 in reply to 121443

    Re: generated pdf doesn't open on acrobat reader 7

    Hi,

    I have tested with Aspose.Pdf 3.6.2.0 and still can't reproduce the problem. Can you please also send us the image that you are using. I think the image could be the cause as the pdf that I generated didn't have the image.

    Thanks.

     
  •  04-10-2008, 4:22 AM 121549 in reply to 121470

    Re: generated pdf doesn't open on acrobat reader 7

    Attachment: Present (inaccessible)
    here is the image
     
  •  04-10-2008, 2:41 PM 121667 in reply to 121549

    Re: generated pdf doesn't open on acrobat reader 7

    Attachment: Present (inaccessible)

    Hi,

    I have tested this every way I can and still can't reproduce the error. I have attached the output that I get. I am testing with Aspose.Pdf v 3.6.2.0. Are you also using this version.

    Thanks.

     
  •  04-11-2008, 4:02 AM 121758 in reply to 121667

    Re: generated pdf doesn't open on acrobat reader 7

    Attachment: Present (inaccessible)
    I can confirm that your generated PDF works.

    Just to double check, i downloaded aspose.pdf from this link: http://www.aspose.com/community/files/113366/download.aspx
    and installed it again today.

    The dll is version 3.6.2.0 and size is 2977KB and the created date is 14th Feb 2008 20:07.

    I still have the problem, and my generated pdf has bigger filesize and the rendered table is slightly different (top row on page 14).

    are we sure we are using the same dll?
     
  •  04-11-2008, 9:41 AM 121846 in reply to 121758

    Re: generated pdf doesn't open on acrobat reader 7

    I'm having exactly the same problem, and the project is due to go live on Monday. Help!

    Created pdf says its corrupted when using version 7 of Acrobat and Reader, yet opens fine in version 8. I've tested it both on PC and Mac, with various browsers. I can copy the supposedly corrupted pdf file over to my dev PC and it opens no problems.

    I've downloaded the latest aspose.pdf dll and that hasn't fixed the problem. 

    Need to get this sorted ASAP as it's a show stopper, any Ideas?

     
  •  04-11-2008, 1:32 PM 121888 in reply to 121846

    Re: generated pdf doesn't open on acrobat reader 7

    Hi,

    Can you please provide your complete solution including the Aspose.Pdf dlls. If its not possible than can you make a simple Hello World application and try to reproduce the error with that and then send us the complete solution. In the mean time I will also ask our developers to look into this.

    Thanks.

     
  •  04-15-2008, 4:48 AM 122305 in reply to 121888

    Re: generated pdf doesn't open on acrobat reader 7

    i found the problem and the solution. I had to run Me.Response.Close() right after doing pdf.Save otherwise it puts html crap at the end of the pdf file, which v7 couldn't handle but v8 could. (i should have figured this out much earlier) thanks
     
  •  06-02-2008, 5:18 PM 129683 in reply to 122305

    Re: generated pdf doesn't open on acrobat reader 7

    Attachment: Present (inaccessible)

    We have the same problem, and Response.Close() after

    pdf,save("Alert.pdf", Aspose.Pdf.SaveType.OpenInBrowser, Response);

    doesn't help unfortunately.

    Please advise.

     

     
  •  06-02-2008, 7:41 PM 129694 in reply to 129683

    Re: generated pdf doesn't open on acrobat reader 7

    Hi,

    I think you should use Response.End() instead of Response.Close().


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-07-2008, 8:43 AM 138757 in reply to 129694

    Re: generated pdf doesn't open on acrobat reader 7

    I was having the same problem and Response.End() works for me.
     
View as RSS news feed in XML