Questions tagged [drawingml]

Part of the Office Open XML specification ECMA-376

Part of the Office Open XML specification ECMA-376, along with WordprocessingML, SpreadsheetML, PresentationML, Shared MLs and Custom XML Schema

25 questions
8
votes
3 answers

Adding Chart to WordprocessingML

I would like to generate an Open XML document containing a Chart using the Open Xml SDK 2. I found an SpreadsheetML example, but I can't work out how to add the chart in a .docx... Is there a good source for documentation/examples for the Open Xml…
herskinduk
  • 1,187
  • 6
  • 14
6
votes
1 answer

Can't load workbook with openpyxl: during handling of the above exception, another exception occurred

I want to edit a xlsx file with openpyxl 2.5.0. This is my code and it works with an empty file: from openpyxl import load_workbook wb = load_workbook(filename="Untitled.xlsx") ws = wb.active ws["B5"] = "test" wb.save("Export.xlsx") However if I…
user8794709
6
votes
1 answer

Word 2007, Open XML - embedding an image

Do you know what basic information MUST include a paragraph () in document.xml inside a *.docx document, that specifies an image? I do know there must be: specifing the relationship id, but what else? It's very…
agnieszka
  • 14,897
  • 30
  • 95
  • 113
5
votes
1 answer

Clipping in DrawingML

I am creating Word DOCX files with embedded vector graphics. Apparently DrawingML is now the preferred way of inserting vector graphics. I am having trouble working out how to clip a diagram within the drawing canvas. It seems to keep scaling my…
axeman
  • 505
  • 1
  • 5
  • 18
5
votes
1 answer

DrawingML to SVG conversion?

Does anyone have any way to convert DrawingML markup into SVG?
Tom Fakes
  • 955
  • 5
  • 12
4
votes
2 answers

Powerpoint OpenXML whitespace is disappearing

I'm coming across a problem where whitespace is being removed in powerpoint documents as soon as I reference a slide. The following code sample illustrates what I mean- //Open the document. using(PresentationDocument presentationDocument =…
ptrc
  • 840
  • 8
  • 16
3
votes
1 answer

OpenXML scheme color transformations - applying and

When processing an open xml document, colors can have various transformations applied to a base color to generate a relative color. For instance would modify the base colors saturation by 25%. There are two transforms I have…
Steve Sheldon
  • 6,421
  • 3
  • 31
  • 35
3
votes
1 answer

Prevent Word 2010 from saving o:gfxdata base64 or uuencoded VML?

I am working with .docx files containing several drawing canvases with images inserted and some lines and arrows drawn in Word 2010. I am using 2010 format with no compatibility mode. Word inserts an o:gfxdata attribute into each v:shape and…
Sarah Kemp
  • 2,670
  • 3
  • 21
  • 29
2
votes
1 answer

Office Open XML satMod results in more than 100% saturation

I'm trying to calculate the satMod (saturation modulation) for something like the following: Section 20.1.2.3.27 of the EMCA-376 spec says of the element: "This element…
2
votes
1 answer

Missing whitespace within PPTX paragraphs using OpenXmlSDK

Using the OpenXmlSDK 2.0 I am reading and writing to powerpoint documents. We have a situation where a simple string within a powerpoint document has its whitespace stripped. The example sentence within a single paragraph occurs when several inline…
damoe
  • 221
  • 1
  • 3
2
votes
1 answer

Where can I learn more about the PowerPoint 2010 file format?

Where can I find the PowerPoint file format definition, like the header/XML/directory structure?
JewelThief
  • 611
  • 2
  • 10
  • 25
2
votes
1 answer

Convert Selected PowerPoint Shapes (or DrawingML) to XAML

I need to convert selected PowerPoint shapes to XAML so I can effectively place an equivalent vector-based shape inside my WPF app (the XAML end result has to be scalable - converting to an image defeats the purpose of what I'm trying to do). I'm…
Mark Miller
  • 985
  • 8
  • 13
2
votes
1 answer

DrawingML insert/paste drawing into a Word document

I am a complete beginner with DrawingML. I am trying to figure out if I can define a shape using the language, save it in some format and import it directly into a drawing canvas inside a Word document. The motivation behind this is to enable users…
David
  • 3,075
  • 3
  • 26
  • 36
2
votes
1 answer

What's the difference between lumMod/lumOff and tint/shade in DrawingML colors?

What's the difference between setting a shade or tint (e.g. 25% darker, 40% lighter respectively) in DrawingML using the and tags and doing what seems to produce a similar outcome with the and tags? In…
scanny
  • 26,423
  • 5
  • 54
  • 80
2
votes
3 answers

In PowerPoint 2007, how can I position a Callout's Tail programatically?

I'm looking at the DrawingML of a PowerPoint 2007 file and this is what it has for the Callout object's coordinates and geometry: // X,Y Position of Callout Box
Ryan Abbott
  • 5,317
  • 7
  • 31
  • 34
1
2