gabuliatko wrote: ↑Mon Sep 07, 2020 5:27 am
Yes, while reading the whole EMF, I came across the need to write elements to PDF that are not used in WMF.
As said before, there is only partial support for the WMF format. Even if I decide to enhance the WMF support and/or to add EMF support, there will still be operations that can't be applied to PDF (e.g. "flood fill").
gabuliatko wrote: ↑Mon Sep 07, 2020 5:27 am
If I may ask, could you show me which variables determine things around objects so I can add colorspace?
Internal method
NewObj must be used on starting the output of an object to PDF. This is required, because each object has an entry in the cross reference section. If
NewObj is called without parameter, a new object id will be created automatically.
Member variable
m_n contains the current object number. Method
GetNewObjId can be used to retrieve a new object id without actually starting to output it to PDF.
There are cases where fixed object ids are used or where implicitly a continuous sequence of object ids is used. This behaviour was inherited from FPDF on which wxPdfDocument was based 15 years ago. If I would start from scratch again, I would implement many things differently now. There are plans to completely rework wxPdfDocument in the future, but for the time being, we have to live with what we currently have.