PDA

View Full Version : WebSupergoo ABCpdf - Missing Objects


qiq
03-18-2004, 02:52 AM
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

bruce
03-18-2004, 02:52 AM
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


[b]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">