Hi all,
I am trying to output the DWF in the attached ZIP file using the Toolkit. The code I am using is included. The output text file is incomplete. Only a few objects are recorded.
What am I doing wrong?
Any help would be appreciated.
Gabriel
You are right to output the ASCII DWF.
Some binary data (like image) that cannot output to ASCII; there are two ways:
1. Call function
set_allow_binary_data(WD_True);
This will allow the binary data output to the ASCII text file;
2. Extract the image data manually.
Please let me know if you have any questions.
Hi Silvia,
I tried set_allow_binary_data (true) too, but that didn't help. There is no image in the DWF, as far as I can tell anyway.
Thanks
Gabriel
The DWF file contains multi-w2ds; we need to process each of them, which means we need to process each resources with the role kzRole_Graphics2dOverlay and kzRole_Graphics2d.
Please let me know if you have any further questions.
Sylvia,
Thanks for your help. Using kzRole_Graphics2dOverlay seems to output the contents.
I notice that many of the entities I am interested in, e.g. Texts appear to be in "Macro" sections. How can I access them in "Macro" sections? See the files (map2.dwf and map2.txt attached).
Also,what do f, F, Node and Contour in the text file represent? I need to be able to read the geometries and fill colors. At the moment, I am only able to read the polylines. I need to access the fills and their colors.
Thanks again for your help.
Gabriel
The entities you are interested:
You can download the DWF Toolkit help documents for more information.
Thanks Silivia, but I don't find any document describing the various entitiy codes. All the documents I see are class descriptions from header files. Which specific document describes the various codes?
I am stuck on reading the data in the macro sections. For example, in the fragment below, how do I access the text '16TH ST' within the macro (macro_draw)? I am able to get the point coordinates (824070658,708964720) but not the text.
Also, what does the "Overpost" mean?
Thanks again.
G 1
S -1012331
M 1 824070658,708964720))
(Macro 1 1012331 (
(Text 0,0 'S. 16TH ST.')))
(Overpost FirstFit True True (
(Font (Rotation 16071))