Printing with Annotations

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
jrpeart
Posts: 2
Joined: Wed Feb 29, 2012 2:11 pm

Printing with Annotations

Post by jrpeart » Wed Feb 29, 2012 2:32 pm

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.
Attachments
F105.TIF
test file with annotation

User avatar
Loïc
Site Admin
Posts: 5586
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Printing with Annotations

Post by Loïc » Wed Feb 29, 2012 4:37 pm

Hello,

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

Kind regards,

Loïc

jrpeart
Posts: 2
Joined: Wed Feb 29, 2012 2:11 pm

Re: Printing with Annotations

Post by jrpeart » Mon Mar 05, 2012 12:05 pm

Thanks Loïc.

That works a treat.

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

johnmcrin
Posts: 4
Joined: Tue Apr 17, 2012 5:37 pm

Re: Printing with Annotations

Post by johnmcrin » Thu Aug 16, 2012 9:33 pm

Love this idea, how about export a text file with notes/annotations ....AND highlights?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest