PXV:IAFS File

From PDF XChange PDF SDK
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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