IAFS_File Interface

From PDF XChange PDF SDK
Jump to: navigation, search


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