Hi,
I am using the free version, and have the following question:
When I export a document, that contains a math formula, to pdf, the formula is OK on the first export, but the font is getting bigger every time I export again.
I boiled it down to this code:
public void WORD_PDF_export()
{
Document src = new Document();
src.LoadFromFile(testdirWord + "\\math.docx"); // document contains just one math-formula
for (int i = 0; i < 5; i++)
{
Document resultDoc = new Document();
Section section = resultDoc.AddSection();
DocumentObject obj = findMath(src);
section.Body.ChildObjects.Add(obj.Clone());
string outputfile = testdirWord + @"\out\zahlen_" + i.ToString() + ".pdf";
resultDoc.SaveToFile(outputfile, FileFormat.PDF);
resultDoc.Close();
}
src.Close();
}
where findMath is:
DocumentObject findMath(Document src)
{
foreach (DocumentObject obj in src.Sections[0].Body.ChildObjects)
{
if (obj is Paragraph)
foreach (DocumentObject p in obj.ChildObjects)
if (p is OfficeMath)
return obj;
}
return null;
}
the test-document for the code above contains just one math formula, it does not matter which, one character will do also.
The resulting font in the resulting pdf is the same size as in the docx-file for i=0.
But it gets bigger with each increment of i.
if I put the line containing src.LoadFromFile inside the loop, the resulting pdf is OK.
Another Question: Integral signs don't get exported at all, it seems.
Is that a limitation of the free version?
thanks in advance
Bruno