Page 1 of 1

Printing with Annotations

Posted: Wed Feb 29, 2012 2:32 pm
by jrpeart
Hi,

I am trying to print an image from a file and include annotations on the print in 8.5

When adding the annotations to the file and saving I am setting the printable property of the annotation to true. However when I go to print the file it is not printing the annotation that is there.

I am using the following code to print the file:

public void PrintDocument(string filePath)
{
int imageID;

if (File.Exists(filePath))
{
try
{
imageID = _imaging.CreateGdPictureImageFromFile(filePath);
_imaging.Print(imageID);
_imaging.ReleaseGdPictureImage(imageID);
}
catch
{ }
}
}

I did alter the code while I was stepping through to open the file in the annotation manager and check that the annotation was in fact there and that its printable property was set to true.

I've attached a test file which isn't working here.

Re: Printing with Annotations

Posted: Wed Feb 29, 2012 4:37 pm
by Loïc
Hello,

You have to use the GdViewer object to print annotated documents.

Kind regards,

Loïc

Re: Printing with Annotations

Posted: Mon Mar 05, 2012 12:05 pm
by jrpeart
Thanks Loïc.

That works a treat.

That must have been about the only thing I didn't try before posting here.

Re: Printing with Annotations

Posted: Thu Aug 16, 2012 9:33 pm
by johnmcrin
Love this idea, how about export a text file with notes/annotations ....AND highlights?