Persits ASPPDF component image problem

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Persits ASPPDF component image problem

  1. #1
    Join Date
    Feb 2010
    Posts
    15

    Default Persits ASPPDF component image problem

    hi

    i am running the following script.....

    <%
    dim Pdf, Filename

    Set Pdf = Server.CreateObject("Persits.Pdf")
    Set Pdf = Pdf.CreateDocument

    Pdf.ImportFromUrl "http://www.mywebsite.co.uk/my_folder/source_file.asp", "media=9"
    Filename = Pdf.Save( Server.MapPath("/pdf/output_file.pdf"), TRUE )
    %>

    this works fine by converting the HTML produced by source_file.asp and saving it as a PDF file as long as the source file has no <img> tags in it. as soon as images are introduced in the source file the script errors with the following error message:

    Active Server Pages error 'ASP 0115'

    Unexpected error

    /test.asp

    A trappable error (C0000005) occurred in an external object. The script cannot continue running.



    (also to note, none of the images referenced in the linked css file make it to the PDF either but this doesnt cause the script to error, they are just ignored)

    i have scoured the component manual and many google searches with no result. if anyone can help with an explanation and a solution that would be great.

    thanks in advance

  2. #2
    Join Date
    Sep 2008
    Posts
    465

    Default

    Have you tried Persits support? I think that's probably going to be your best bet.

  3. #3
    Join Date
    Feb 2010
    Posts
    15

    Default support

    hi

    yes i have used the reference, samples and searched the persits component site extensivley but nothing of help.

    the only thing i came across was related to correctly forming the image tag paths in the html code when passing a string of html to the ImportFomURL method. although this does appear to be related i formed all the img paths in all of the suggested ways in my source file just to be sure but with no success.

    anything else anyone?

    thanks for your reply

  4. #4
    Join Date
    Dec 1969
    Posts
    95,958

    Default

    You paid for the product. Ask Persits a question.

    If you haven't yet paid for the product, you will need to soon or your license will expire.


  5. #5
    Join Date
    Feb 2010
    Posts
    15

    Default obviously

    yes, thanks for pointing that out. as previoulsly mentioned... i have used the reference manual, samples and searched the persits component site extensivley.

    i am also in conversation with persits but they are stuck for ideas. i assumed a post on a forum of this nature was a logical step in finding a solution but perhaps its not.

  6. #6
    Join Date
    Sep 2008
    Posts
    465

    Default

    I don't think so. There's not enough information there. The Persits support folks are the only ones who know the internals of their component, and if anyone can tell you what specifically in your script is making it fail, it's going to be them.

  7. #7
    Join Date
    Dec 1969
    Posts
    95,958

    Default

    For what it's worth, that error 0xC0000005 simply means that a memory fault occurred. Since the Persits code is almost surely compiled VB or compiled C++ code, we really don't have any hope of debugging to find out where that fault is. (A memory fault is when the CPU tries to read or write to memory that is not currently part of the process space or tried to write to memory that is in the process space but is not marked as writable.)

    Without a *good* debugger and access to the source code, it would be nearly impossible to figure this out from that message.

  8. #8
    Join Date
    Feb 2010
    Posts
    15

    Default thanks

    thanks all for the responses.

    persits have now resolved this problem for me.

  9. #9
    Join Date
    Jan 2012
    Posts
    1

    Default HI i have the same problem

    please can you give me the solution persists gave to you ?

  10. #10
    Join Date
    Jan 2012
    Posts
    1

    Default

    Quote Originally Posted by megustalapaella View Post
    please can you give me the solution persists gave to you ?
    Just as megustalapaella I had the same issue, so can you please post the solution persists gave you here?






    _________________________
    YouTube downloader

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


More ASP Resources

Resources:
-- ASP Articles
-- ASP.NET Information
-- 4Guys ASP F.A.Q.
-- ASPFAQs.com
-- ASP Coding Tips
-- Related Web Technologies
-- User Tips!!
-- JavaScripts


Development Centers
-- HTML5 Development Center
-- Windows Mobile Development Center
-- Android Development Center
-- Cloud Development Project Center


Development Technology
Check out these sites for more articles, tutorials, FAQs, discussions, and code!
-- CodeGuru.com
-- VBForums.com
-- DevX.com
-- Developer.com
-- HTMLGoodies