Bugzilla – Attachment 150623 Details for
Bug 124141
Create a document analyser for LibreOffice triage and QA
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The attachment contains my easy hack to the document anayser for a Libreoffice Document
Easyhack.py (text/plain), 777 bytes, created by
ipshii1609
on 2019-04-09 16:25:28 UTC
(
hide
)
Description:
The attachment contains my easy hack to the document anayser for a Libreoffice Document
Filename:
MIME Type:
Creator:
ipshii1609
Created:
2019-04-09 16:25:28 UTC
Size:
777 bytes
patch
obsolete
># -*- coding: utf-8 -*- >""" >Created on Fri Mar 22 18:38:31 2019 > >@author: Ipshita >""" >from odf.opendocument import load >from odf import text >countP=0 >imgC=0 >bmrk=0 >hlinkC=0 >fchangeC=0 >ntables=0 >doc = load("LibreDoc2.odt") >for paragraph in doc.getElementsByType(text.P): > countP+=1 >print("Number of Paragraphs:",countP) >for img in doc.getElementsByType(text.ImageCount): > imgC+=1 >print("Number of Images:",imgC) >for stl in doc.getElementsByType(text.Bookmark): > bmrkC+=1 >print("Number of Bookmarks:",bmrk) >for fchange in doc.getElementsByType(text.FormatChange): > fchangeC+=1 >print("Number of ChangeTracking:",fchangeC) >for ntables in doc.getElementsByType(text.TableCount): > ntables+=1 >print("Number of Tables:",ntables)
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 124141
: 150623 |
159166
|
168089
|
168100
|
168410