Save Annotations
Save Annotations
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
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
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Save Annotations
Hi,
Please trying setting GdViewer.ForceTemporaryModeForImage property to True.
Best,
Sami
Please trying setting GdViewer.ForceTemporaryModeForImage property to True.
Best,
Sami
Re: Save Annotations
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
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
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Save Annotations
Hi,
Sure, it is in the remarks of the function documentation , here it is:
https://www.gdpicture.com/guides/gdpicture/v9/html/con ... ssion.html
Best,
Sami
Sure, it is in the remarks of the function documentation , here it is:
https://www.gdpicture.com/guides/gdpicture/v9/html/con ... ssion.html
Best,
Sami
Re: Save Annotations
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
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
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Save Annotations
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
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
Who is online
Users browsing this forum: No registered users and 1 guest