incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jianlizhao <jianlizh...@hotmail.com>
Subject how Get Bitmap file from SVG module?
Date Sun, 03 Jun 2012 09:23:05 GMT
Hi Armin:

I send an Email to Texmaths's author ,  asked he some questions, communicate
with each other as follows:

My question:
LaTeX will equations can be inserted as images (SVG or PNG formats) and
 the LaTeX, code is saved into the image attribute for further editing.

His reply:
Image attributes are not stored directly in the png file but in LibreOffice
data that are attached to the image.


 attached the image attribute in openOffice data  below:( basic code)
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Sub SetAttributes( oShape as Variant, iEqSize as Integer, sEqType as String,
sCode as String) 
         'Add the Latex attribute to the image.
         Dim oAttributes as Variant, oLatexAttribute as Variant
         oAttributes = oShape.UserDefinedAttributes
         oLatexAttribute = createUnoStruct(
;com.sun.star.xml.AttributeData&quot; )
         oLatexAttribute.Type =                          
         oLatexAttribute.Value = 
         oAttributes.insertByName( ) 
         oShape.UserDefinedAttributes = oAttributes
End Sub
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

My question is:
When the image attribute very long, example 10M bytes, if it  will  wrong.
The image attribute can  as a zip file saved in the odf?

 Look forward to your reply.
 Best Regards!


Mime
View raw message