Embed Source File
Purpose
The Embed Source File function allows the source file from which the DWF was created to be embedded (or referenced) inside the DWF, thus allowing smart drag-and-drop operations.
Syntax
Opcode format | Opcode | Operand Format | Comments |
Extended ASCII | (EmbedRef | <ws>(<TType>/<TSubtype>;[<Toptions>])<ws>(<Tdesc>)<ws>(<TFilename>)<ws>(<TURL>)) | Reference to a source file |
(EmbedFile | <ws>(<TType>/<TSubtype>;[<Toptions>])<ws>(<TDesc>)<ws>(<TFilename>)<ws>{<DData>}) | Embedded source file |
Type A standard MIME (Multipurpose Internet Mail Extension) specification type field of the data being embedded
Subtype The MIME subtype of the data being embedded
Options The MIME options field
Desc A general description of the embedded file or of the link (argument is normally ignored)
URL A universal resource locator specification of the source file being referenced
Filename The file name of the source file being embedded
Data The binary data of the source file being embedded
Details
After viewing a .dwf file in an Internet browser, a user may wish to edit the illustration using both the original program and the original source file that the .dwf file was created from. The embed opcode allows the source file that was used to create the .dwf file to be referenced or embedded inside the .dwf file.
For example, a user might perform a drag-and-drop operation by dragging from a DWF being viewed in an Internet browser and dropping into a CAD application like AutoCAD. Because .dwf files are essentially electronic printouts, they are designed mainly for viewing not editing (much of the application-specific information is not contained in the .dwf file). Rather than dropping the DWF data into the CAD application, the Internet DWF viewer can drop the embedded native CAD source file, for example, an AutoCAD .dxf file. The embed opcode can be used as follows:
(EmbedRef (image/autocad-dxf;) () () (http://www.autodesk.com/house.dxf))
Notes
Implementation in WHIP! Versions
Toolkit Function |
TBD |
Partial |
Full |
Revised in |
Embed Source File |
- |
1.03 |
- |
- |