This is the LAST part of my project. I am saving an image as a PDF using MBS DynaPDF. I am attempting to make the image come from a canvas. The canvas size can be adjusted, so keeping it non-reliant on the canvases size is a must. This is the hack-job that I have so far:
// get picture dim p as picture=Canvas1.Backdrop dim x,y,w,h as Double dim f as Double dim dw as integer = d.GetPageWidth dim dh as integer = d.GetPageHeight // scale to fit the page size f=min(dw/p.Width, dh/p.Height) w=f*p.Width h=f*p.Height x=(dw-500) y=(dh-2600) // add image to pdf call d.InsertPicture(p, x, y, w, h) call call d.EndPage call d.CloseFile file.Launch
I have come to the conclusion that I suck at manipulating the plug ins.