IAFS_File Interface
From PDF XChange PDF SDK
(→Sample) |
(→Sample) |
||
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 | + | PDFXEdit.IAFS_Inst fsInst = (PDFXEdit.IAFS_Inst)pdfCtl.Inst.GetExtension("AFS"); //Getting IAFS_Inst from IPXV_Inst |
PDFXEdit.IAFS_Name destPath = fsInst.DefaultFileSys.StringToName("D:\\TestImage.png"); //Converting string to name | PDFXEdit.IAFS_Name destPath = fsInst.DefaultFileSys.StringToName("D:\\TestImage.png"); //Converting string to name | ||
− | 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); | + | int openFileFlags = (int)(PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_CreateAlways | |
− | PDFXEdit.IAFS_File file = fsInst.DefaultFileSys.OpenFile(destPath, openFileFlags); //Opening file by name | + | PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Read | |
+ | PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Write | | ||
+ | PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_FullCache); | ||
+ | PDFXEdit.IAFS_File file = fsInst.DefaultFileSys.OpenFile(destPath, openFileFlags); //Opening file by name | ||
</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_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]] |
Revision as of 00:32, 12 January 2016
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# PDFXEdit.IAFS_Inst fsInst = (PDFXEdit.IAFS_Inst)pdfCtl.Inst.GetExtension("AFS"); //Getting IAFS_Inst from IPXV_Inst PDFXEdit.IAFS_Name destPath = fsInst.DefaultFileSys.StringToName("D:\\TestImage.png"); //Converting string to name 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); PDFXEdit.IAFS_File file = fsInst.DefaultFileSys.OpenFile(destPath, openFileFlags); //Opening file by name
See Also
IAFS_FileSys::OpenFile, IAFS_Inst::CopyFile2, IAFS_Inst::CopyFileToStream, IAFS_Inst::CopyStreamToFile, IAFS_FileCachesMap::CheckForReopenFile, IAFS_FileCachesMap::CreateNewCache, IAFS_FileCachesMap::OnDisposeFileObj, IAFS_FileCacheEntry::Item, IPXC_EmbeddedFileStream::SaveToFile, IPXC_EmbeddedFileStream::UpdateFromFile, IPXC_Sound::SaveToFile, IPXC_Sound::UpdateFromFile, IPXC_StampsCollection::AddStamp, IPXC_StampsCollection::AddStamps, IPXC_StampsManager::LoadCollection, IUIX_Inst::CreateImageFromFile, IPXV_Inst::FindDocBySrcFile