Bugzilla – Attachment 89838 Details for
Bug 72036
GraphicExportFilter mangles asian characters in headless mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Python script
drawpages.py (text/plain), 1009 bytes, created by
Maxim
on 2013-11-26 14:09:36 UTC
(
hide
)
Description:
Python script
Filename:
MIME Type:
Creator:
Maxim
Created:
2013-11-26 14:09:36 UTC
Size:
1009 bytes
patch
obsolete
>import uno > >localContext = uno.getComponentContext() >resolver = localContext.ServiceManager.createInstanceWithContext( > "com.sun.star.bridge.UnoUrlResolver", localContext) > >context = resolver.resolve("uno:socket,host=localhost,port=2002;" > "urp;StarOffice.ComponentContext") > >desktop = context.ServiceManager.createInstanceWithContext( > "com.sun.star.frame.Desktop", context) > >url = uno.systemPathToFileUrl('/tmp/draw.odg') >doc = desktop.loadComponentFromURL(url, "_blank", 0, ()) > >draw_pages = doc.getDrawPages() >page = draw_pages.getByIndex(0) > >gf = context.ServiceManager.createInstanceWithContext( > "com.sun.star.drawing.GraphicExportFilter", context) >gf.setSourceDocument(page) > >url = uno.systemPathToFileUrl('/tmp/draw.png') >pv1 = uno.createUnoStruct("com.sun.star.beans.PropertyValue") >pv1.Name, pv1.Value = "URL", url > >pv2 = uno.createUnoStruct("com.sun.star.beans.PropertyValue") >pv2.Name, pv2.Value = "MediaType", "image/png" > >args = (pv1, pv2) > >gf.filter(args) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 72036
: 89838 |
89839
|
89840
|
89841