Page 1 of 1

Save Annotations

Posted: Fri Jul 26, 2013 1:46 pm
by rpicilli
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

Re: Save Annotations

Posted: Fri Jul 26, 2013 5:02 pm
by SamiKharma
Hi,

Please trying setting GdViewer.ForceTemporaryModeForImage property to True.

Best,
Sami

Re: Save Annotations

Posted: Fri Jul 26, 2013 9:52 pm
by rpicilli
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

Re: Save Annotations

Posted: Fri Jul 26, 2013 11:14 pm
by SamiKharma
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

Re: Save Annotations

Posted: Sun Jul 28, 2013 5:27 pm
by rpicilli
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

Re: Save Annotations

Posted: Mon Jul 29, 2013 9:20 am
by SamiKharma
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