IAFS_File Interface

From Tracker Software PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
 
(4 intermediate revisions by 2 users not shown)
Line 40: Line 40:
 
| [[PXV:IAFS_File_Prop|Prop]]
 
| [[PXV:IAFS_File_Prop|Prop]]
 
|}
 
|}
 +
 +
== Sample ==
 +
<pre class="brush:c#">//C#
 +
//Getting IAFS_Inst from IPXV_Inst
 +
PDFXEdit.IAFS_Inst fsInst  = (PDFXEdit.IAFS_Inst)pdfCtl.Inst.GetExtension("AFS");
 +
//Converting string to name
 +
PDFXEdit.IAFS_Name destPath = fsInst.DefaultFileSys.StringToName("D:\\TestImage.png");
 +
int openFileFlags          = (int)(PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_CreateAlways |
 +
                                    PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Read |
 +
                                    PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Write |
 +
                                    PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_FullCache);
 +
//Opening file by name
 +
PDFXEdit.IAFS_File file    = fsInst.DefaultFileSys.OpenFile(destPath, openFileFlags);
 +
</pre>
  
 
== See Also ==
 
== See Also ==
[[PXV:IAFS_FileSys_OpenFile|IAFS_FileSys::OpenFile]], [[PXV:IAFS_Inst_CopyFile2|IAFS_Inst::CopyFile2]], [[PXV:IAFS_Inst_CopyFileToStream|IAFS_Inst::CopyFileToStream]], [[PXV:IAFS_Inst_CopyStreamToFile|IAFS_Inst::CopyStreamToFile]], [[PXV:IAFS_FileCachesMap_CheckForReopenFile|IAFS_FileCachesMap::CheckForReopenFile]], [[PXV:IAFS_FileCachesMap_CreateNewCache|IAFS_FileCachesMap::CreateNewCache]], [[PXV:IAFS_FileCachesMap_OnDisposeFileObj|IAFS_FileCachesMap::OnDisposeFileObj]], [[PXV:IAFS_FileCacheEntry_Item|IAFS_FileCacheEntry::Item]], [[PXV:IPXC_EmbeddedFileStream_SaveToFile|IPXC_EmbeddedFileStream::SaveToFile]], [[PXV:IPXC_EmbeddedFileStream_UpdateFromFile|IPXC_EmbeddedFileStream::UpdateFromFile]], [[PXV:IPXC_Sound_SaveToFile|IPXC_Sound::SaveToFile]], [[PXV:IPXC_Sound_UpdateFromFile|IPXC_Sound::UpdateFromFile]], [[PXV:IPXC_StampsCollection_AddStamp|IPXC_StampsCollection::AddStamp]], [[PXV:IPXC_StampsCollection_AddStamps|IPXC_StampsCollection::AddStamps]], [[PXV:IPXC_StampsManager_LoadCollection|IPXC_StampsManager::LoadCollection]], [[PXV:IUIX_Inst_CreateImageFromFile|IUIX_Inst::CreateImageFromFile]], [[PXV:IPXV_Inst_FindDocBySrcFile|IPXV_Inst::FindDocBySrcFile]]
+
[[PXV:IAFS_FileSys_OpenFile|IAFS_FileSys::OpenFile]], [[PXV:IAFS_Inst_CopyFile2|IAFS_Inst::CopyFile2]], [[PXV:IAFS_Inst_CopyFileToStream|IAFS_Inst::CopyFileToStream]], [[PXV:IAFS_Inst_CopyStreamToFile|IAFS_Inst::CopyStreamToFile]], [[PXV:IAFS_Inst_CreateStreamOnFile|IAFS_Inst::CreateStreamOnFile]], [[PXV:IAFS_FileCachesMap_CheckForReopenFile|IAFS_FileCachesMap::CheckForReopenFile]], [[PXV:IAFS_FileCachesMap_CreateNewCache|IAFS_FileCachesMap::CreateNewCache]], [[PXV:IAFS_FileCachesMap_OnDisposeFileObj|IAFS_FileCachesMap::OnDisposeFileObj]], [[PXV:IAFS_FileCacheEntry_Item|IAFS_FileCacheEntry::Item]], [[PXV:IPXC_EmbeddedFileStream_SaveToFile|IPXC_EmbeddedFileStream::SaveToFile]], [[PXV:IPXC_EmbeddedFileStream_UpdateFromFile|IPXC_EmbeddedFileStream::UpdateFromFile]], [[PXV:IPXC_DocSrcInfo_File|IPXC_DocSrcInfo::File]], [[PXV:IPXC_Sound_SaveToFile|IPXC_Sound::SaveToFile]], [[PXV:IPXC_Sound_UpdateFromFile|IPXC_Sound::UpdateFromFile]], [[PXV:IPXC_StampsCollection_AddStamp|IPXC_StampsCollection::AddStamp]], [[PXV:IPXC_StampsCollection_AddStamps|IPXC_StampsCollection::AddStamps]], [[PXV:IPXC_StampsManager_LoadCollection|IPXC_StampsManager::LoadCollection]], [[PXV:IUIX_Inst_CreateIconFromFile|IUIX_Inst::CreateIconFromFile]], [[PXV:IUIX_Inst_CreateImageFromFile|IUIX_Inst::CreateImageFromFile]], [[PXV:IPXV_Inst_FindDocBySrcFile|IPXV_Inst::FindDocBySrcFile]], [[PXV:IPXV_Inst_RevertDoc|IPXV_Inst::RevertDoc]], [[PXV:IPXV_GotoActionEvent_PostData|IPXV_GotoActionEvent::PostData]]

Latest revision as of 22:50, 30 November 2017


The interface of object of PDF-XChange Editor SDK.

Methods

Clone GetPos IsCloneOf SetPos
Close GetSize Read SetSize
Exec GetStream Reopen Write
Flush

Properties

IoMode Name OpenFlags Prop

Sample

//C#
//Getting IAFS_Inst from IPXV_Inst
PDFXEdit.IAFS_Inst fsInst   = (PDFXEdit.IAFS_Inst)pdfCtl.Inst.GetExtension("AFS");
//Converting string to name
PDFXEdit.IAFS_Name destPath = fsInst.DefaultFileSys.StringToName("D:\\TestImage.png");
int openFileFlags           = (int)(PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_CreateAlways |
                                    PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Read |
                                    PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Write |
                                    PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_FullCache);
//Opening file by name
PDFXEdit.IAFS_File file     = fsInst.DefaultFileSys.OpenFile(destPath, openFileFlags);

See Also

IAFS_FileSys::OpenFile, IAFS_Inst::CopyFile2, IAFS_Inst::CopyFileToStream, IAFS_Inst::CopyStreamToFile, IAFS_Inst::CreateStreamOnFile, IAFS_FileCachesMap::CheckForReopenFile, IAFS_FileCachesMap::CreateNewCache, IAFS_FileCachesMap::OnDisposeFileObj, IAFS_FileCacheEntry::Item, IPXC_EmbeddedFileStream::SaveToFile, IPXC_EmbeddedFileStream::UpdateFromFile, IPXC_DocSrcInfo::File, IPXC_Sound::SaveToFile, IPXC_Sound::UpdateFromFile, IPXC_StampsCollection::AddStamp, IPXC_StampsCollection::AddStamps, IPXC_StampsManager::LoadCollection, IUIX_Inst::CreateIconFromFile, IUIX_Inst::CreateImageFromFile, IPXV_Inst::FindDocBySrcFile, IPXV_Inst::RevertDoc, IPXV_GotoActionEvent::PostData