IAFS_File Interface

From PDF XChange PDF SDK
Jump to: navigation, search
(Sample)
m (Automatic page editing by robot)
 
(One intermediate revision by one other user not shown)
Line 43: Line 43:
 
== Sample ==
 
== Sample ==
 
<pre class="brush:c#">//C#
 
<pre class="brush:c#">//C#
PDFXEdit.IAFS_Inst fsInst  = (PDFXEdit.IAFS_Inst)pdfCtl.Inst.GetExtension("AFS"); //Getting IAFS_Inst from IPXV_Inst
+
//Getting IAFS_Inst from IPXV_Inst
PDFXEdit.IAFS_Name destPath = fsInst.DefaultFileSys.StringToName("D:\\TestImage.png"); //Converting string to name
+
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 |
 
int openFileFlags          = (int)(PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_CreateAlways |
 
                                     PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Read |
 
                                     PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Read |
 
                                     PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Write |
 
                                     PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Write |
 
                                     PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_FullCache);
 
                                     PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_FullCache);
PDFXEdit.IAFS_File file    = fsInst.DefaultFileSys.OpenFile(destPath, openFileFlags); //Opening file by name
+
//Opening file by name
 +
PDFXEdit.IAFS_File file    = fsInst.DefaultFileSys.OpenFile(destPath, openFileFlags);
 
</pre>
 
</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 23: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