WebSupergoo ABCpdf - Missing Objects

Discussion in 'ASP.NET / ASP.NET Core' started by qiq, Mar 18, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. qiq

    qiq

    Hi
    I have just started using ABCpdf and I get it to work when I just add text to a doc, e.g.

    Dim theDoc As Doc = New Doc()
    theDoc.Width = 4
    theDoc.FontSize = 32
    theDoc.Rect.Inset(20, 20)
    theDoc.FrameRect()
    theID = theDoc.AddHTML(theText)
    While theDoc.GetInfo(theID, "Truncated") = "1"
    theDoc.Page = theDoc.AddPage()
    theDoc.FrameRect()
    theID = theDoc.AddHTML("", theID)
    End While
    theDoc.Save(Server.MapPath("textflow.pdf"))
    theDoc.Clear()

    BUT ... when I try to add an image I run into problems. I get
    "AddImageObject is not a member of Websupergoo.ABCpdf3"
    ... when I add the following to the code.

    Dim theImg As XImage = New XImage()
    theImg.SetFile("sample.jpg")
    theDoc.AddImageObject(theImg, false)

    Can anybody suggest a solution ?

    Regards
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    We have recently discovered that the ABCPDF's AddImage function require us to disable the default security policy on Windows 2003 server to function. After serious consideration, we have decided that we will forego this feature in favor of security. As a result, AddImage function will not work on our server. For more detail, you can check the support page at http://www.websupergoo.com/support.htm#abcpdf


    quote:Originally posted by qiq

    Hi
    I have just started using ABCpdf and I get it to work when I just add text to a doc, e.g.

    Dim theDoc As Doc = New Doc()
    theDoc.Width = 4
    theDoc.FontSize = 32
    theDoc.Rect.Inset(20, 20)
    theDoc.FrameRect()
    theID = theDoc.AddHTML(theText)
    While theDoc.GetInfo(theID, "Truncated") = "1"
    theDoc.Page = theDoc.AddPage()
    theDoc.FrameRect()
    theID = theDoc.AddHTML("", theID)
    End While
    theDoc.Save(Server.MapPath("textflow.pdf"))
    theDoc.Clear()

    BUT ... when I try to add an image I run into problems. I get
    "AddImageObject is not a member of Websupergoo.ABCpdf3"
    ... when I add the following to the code.

    Dim theImg As XImage = New XImage()
    theImg.SetFile("sample.jpg")
    theDoc.AddImageObject(theImg, false)

    Can anybody suggest a solution ?

    Regards
    </blockquote id="quote"></font id="quote">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page