You might want to ask this on Christian's MBS mailing list, but what
I think you are going to need to do is create a new PDF document,
load or otherwise draw the existing PDF document in the new PDF
document's context, add your additional graphics primitives, then
close the new PDF document.
John
On Jul 19, 2006, at 7:35 PM, Matthew Jacques wrote:
Hello,
I downloaded the MBS demo and am having a horrible time getting the
MBS PDF capabilities to work.
Basically, I need to import a PDF, draw it to to the normal graphics
variable, draw some more graphic primitives to it (like text and
square, ect) and then finally print it out. However, I dont understand
all the parameters that his
plugins need.
I originally tried opening as a picture, but the quality is poor and
print speed is slow. I need it to remain a postscript image in the
graphics class to allow fast printing and high resolution.
Here is my code in a button to import a PDF and write it directly to a
graphics class. I have a global variable called globalvariable as
graphics.
dim f as folderItem
dim g as graphics
dim p as picture
dim CGOpenPDFDocumentMBS(file as folderitem) as CGPDFDocumentMBS
dim r as CGRectMBS
dim g as CGContextMBS
f = getOpenFolderItem("")
if f = nil then
return
end if
globalvariable.DrawCGImageMBS(image as CGImageMBS, r as CGRectMBS)
______________________________________________________________________
__
My main problem is that the syntax perplexes me. I'm sure it should be
rather simple ...
Matt
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>