Save Annotations

Discussions about annotation support.
Post Reply
rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Save Annotations

Post by rpicilli » Fri Jul 26, 2013 1:46 pm

Hi Loïc, how are you doing? I hope you're fine.

I'm facing the following situation:

I've a multittif file load into a GdViewer. I put some annotation on it. When a use the SaveDocumentToTiff method only the first page is saved. I'm try to save the file with the same name. No error but have only one page file at end of the day.

I create a work around but I don't know if this is the right way.

Workaround (Save the file xxxx.tif with the name xxxx.tif.tif and after delete and rename to the original name)
****************************************************************************************
If DocsView.SaveDocumentToTIFF(pathArquivoCarregado & ".tif", GdPicture9.TiffCompression.TiffCompressionAUTO) = GdPicture9.GdPictureStatus.OK Then
Dim iPaginaAtual As Integer = DocsView.CurrentPage
DocsView.CloseDocument()
System.IO.File.Delete(pathArquivoCarregado)
System.IO.File.Move(pathArquivoCarregado & ".tif", pathArquivoCarregado)
DocsView.DisplayFromFile(pathArquivoCarregado)
DocsView.DisplayPage(iPaginaAtual)
End If
****************************************************************************************

Any help with be welcomed.

Regards

Rogerio

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Save Annotations

Post by SamiKharma » Fri Jul 26, 2013 5:02 pm

Hi,

Please trying setting GdViewer.ForceTemporaryModeForImage property to True.

Best,
Sami

rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Re: Save Annotations

Post by rpicilli » Fri Jul 26, 2013 9:52 pm

Hi SamiKharma,

Thank you. Its working now with you sugestion. Could you tell me where can I find these information on the help files or documentation?

Regards

Rogerio

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Save Annotations

Post by SamiKharma » Fri Jul 26, 2013 11:14 pm

Hi,

Sure, it is in the remarks of the function documentation :), here it is:
http://guides.gdpicture.com/v9/html/con ... ssion.html

Best,
Sami

rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Re: Save Annotations

Post by rpicilli » Sun Jul 28, 2013 5:27 pm

Hi SamiKharma,

I've noted the the very first time after running the application, when I try to save the document I get an error. After that the error is gonne.

I find the error and I'm just puting this here because I think this could be helpfull in a future.

I've put the command GdViewer.ForceTemporaryModeForImage property to True just before the action of save the document. I guess the problem is that.

When I change the place of this command, I've put now in the Component Load, all is OK.

Regards

Rogerio

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Save Annotations

Post by SamiKharma » Mon Jul 29, 2013 9:20 am

Hi,

This is normal behavior. This property should be set for true before the document is displayed in the GdViewer and not before it is saved.

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests