Printing with Annotations
Printing with Annotations
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.
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
Hello,
You have to use the GdViewer object to print annotated documents.
Kind regards,
Loïc
You have to use the GdViewer object to print annotated documents.
Kind regards,
Loïc
Re: Printing with Annotations
Thanks Loïc.
That works a treat.
That must have been about the only thing I didn't try before posting here.
That works a treat.
That must have been about the only thing I didn't try before posting here.
Re: Printing with Annotations
Love this idea, how about export a text file with notes/annotations ....AND highlights?
Who is online
Users browsing this forum: No registered users and 0 guests