We are creating a large table using iText 7 we are almost fully 508 complaint however we are missing the table summary rule.
Is there a way to add the table summary at creation time using iText 7?
I have attached a picture of what I am looking for.
It is possible to add AccessibilityProperties to the Table object itself. The Summary needs to be added through a PdfDictionary
PdfDictionary attr = new PdfDictionary();
attr.put(new PdfName("Summary"), new PdfString("Info about the table"));
table.getAccessibilityProperties().addAttributes(new PdfStructureAttributes(attr));
ApiDocs can be found here
I tried the solution above, but unfortunately Adobe's Summary Accessebility Check failed.
According to the specification, the acceesibility properties' structure should be a bit different. One should use the next line:
tblContact.getAccessibilityProperties().addAttributes(new PdfStructureAttributes("Table").addTextAttribute("Summary","Table summary text" ));
Related
There are about 15 columns in my report file in birt eclipse. I have been facing issue of data truncating/ column cutting while exporting to pdf. Is there any way we can avoid truncation and show full content in pdf or can suggest any alternative for this problem
You should use the following options (assuming you are using the POJO or OSGI runtime) and task is a RunAndRenderTask or a RenderTask:
PDFRenderOption pdfOptions = new PDFRenderOption(options);
pdfOptions.setOption(IPDFRenderOption.PAGE_OVERFLOW, IPDFRenderOption.OUTPUT_TO_MULTIPLE_PAGES);
pdfOptions.setOption(IPDFRenderOption.PDF_TEXT_WRAPPING, true);
pdfOptions.setOption(IPDFRenderOption.PDF_WORDBREAK, true);
task.setRenderOption(options);
before calling task.render() or task.run() depending on task's class.
In older releases of BIRT, PDF_WORBREAK was called PDF_HYPHENATION IIRC.
This option caused words that don't fit into a single line to break, eg.
supercalif
ragilistic
Note that is is not true hyphenation, which would mean to break between syllables. That's why the option was renamed.
Is it possible to get Sphinx to generate the index based on existing labels and :ref: in the text? Say if you have a label:
.. _my_label:
My Section
and later refer to it through multiple :ref:`my_label` , is there a way to get the equivalent of an automatic generation of:
.. index:: My Section
where the label is, and the same before the paragraph where the :ref: lives?
The official doc does not list labels or :ref: as index-generating markup and I could not find any extension doing it. But maybe there is one?
There's an official list of Sphinx extensions, and there are a few lists of unoffical extensions on Github but none of them implement the functionality specified in the question.
The closest approach to the problem specified in the question would be using autosectionlabel to automatically create a target label having the section name, and place an :index: or .. index:: adjacent to the reST section to place it in the index. However, this would only save having to declare the label, declaring the index entry would still be necessary.
The functionality (directive) you ask for provides little tangible gain beyond writing one less line or block of reST code (the .. index:: directive or :index: role), be it for sections or targets.
Sphinx being open source would allow implementing a custom directive for this, however using a non-standard directive having as only aim shortening standard syntax by a single construct would stand to create more difficulty than gain for readers of your source code.
I am using the Wikipedia Dataset to perform mapreduce. The dataset am using is(Wikipedia Wiki namespace) from here. The data in the bz2 file is like this
REVISION 724 234015 Wikipedia:Adding_Wikipedia_articles_to_Nupedia 2001-03-28T22:33:49Z ip:Larry_Sanger ip:Larry_Sanger
CATEGORY
IMAGE
MAIN Larry_Sanger LMS Adding_Nupedia_articles_to_Wikipedia Jimbo_Wales Nupedia Wikipedia
TALK
USER
USER_TALK
OTHER
EXTERNAL http://www.nupedia.com/write.shtml http://www.nupedia.com/policy.shtml http://www.nupedia.com/newsystem/signup.phtml http://www.nupedia.com/newsystem/writearticle.phtml?instr=on http://www.nupedia.com/editors.phtml
TEMPLATE
COMMENT *
MINOR 0
TEXTDATA 685
REVISION 724 431753 Wikipedia:Adding_Wikipedia_articles_to_Nupedia 2002-05-19T17:36:09Z Eclecticology 372
CATEGORY
IMAGE
MAIN Larry_Sanger LMS LMS Adding_Nupedia_articles_to_Wikipedia Jimbo_Wales Nupedia Wikipedia Mores Adding_Wikipedia_articles_to_Nupedia/Help
TALK
USER
USER_TALK
OTHER
EXTERNAL http://www.nupedia.com/write.shtml http://www.nupedia.com/policy.shtml http://chalkboard.nupedia.com http://www.nupedia.com/newsystem/signup.phtml http://www.nupedia.com/newsystem/writearticle.phtml?instr=on http://www.nupedia.com/editors.phtml
TEMPLATE
COMMENT "mores" linked; -/Talk
MINOR 1
TEXTDATA 738
Basically I want to transform each revision into one row so that one set of revision with all the other details are in a single row. I tried following something similar to this but its not working. Could someone guide me as to how to go about it?
The easiest (probably not the most elegant) way to preprocess the data. Based on your link we're talking about 18GB that's doable.
And anyway you have to separate the data from the schema (it seems the data contains the filed names too).
A nicer solution to write your own loader for this type of data.
Here you'll find some example project and a tutorial http://help.mortardata.com/technologies/pig/write_your_own
I have outlook 2011 in my mac. I have more than 30,000 emails in my mail box and would like to search from all the mails based on inputs.
Now using Advanced find I can do that , But for each and every value I have to add a new search criteria
eg . Subject contains xxx
Subject contains yyy
Subject contains zzz
it would be very difficult for me to add the search value manually if I have 1000 values to search for.
Is there any effective way to do this or do we some plugin which would read from input file and populate these vales ?
Any help would be really appreciated
I think, you can get little bit help from this -- http://derflounder.wordpress.com/2011/04/26/finding-the-hidden-search-options-in-outlook-2011/ , also this one too - https://www.gvsu.edu/cms3/assets/428A2C9A-0FB7-5B0C-BBFCF723C12E59E3/outlook_mac_search_email.pdf
In Windows version of Outlook there is a hidden tab that can be enabled by creating a new registry key HKEY_CURRENT_USER\Software \Microsoft\Office\12.0\Outlook\QueryBuilder. See here (sroll to Building DASL Queries).
This adds SQL tab to Filter dialog of Customize Current View. Here you can write a text with DASL query. The query for your example would look like this:
("urn:schemas:httpmail:subject" LIKE '%xxx%' AND
"urn:schemas:httpmail:subject" LIKE '%yyy%' AND
"urn:schemas:httpmail:subject" LIKE '%zzz%')
You can create script that takes all keywords from a text file and formats them like
"urn:schemas:httpmail:subject" LIKE '%MyKeyword%'
and construct the DASL query prorgamatically from a text file. You can store your generated queries as text files and copy them in the SQL tab as necessary.
This solution is surely far from perfect but it is relatively easy to implement. The problem is that I do not know how to enable that tab in Outlook 2011 on Mac nor whether it is possible at all. I do not have a Mac so take this rather as a hint.
I have been searching the web, this site and obviously the developers section on reports from OpenERP and I can not find any explanation as what the Openwriter properties/User defined are used for.
Spending some time on developing a first report, I came to some conclusion but can't work it all out:
There are three columns: Name, Type and Value. In all the predefined OpenERP reports I have opened using Openwriter, the schema seems to be always the same. Four rows, "Info 1" to "Info 4", all with the type "text", and then the server location, the user login id, a number and a table name.
I understand that the server location and user login id will be used when connecting to the server.
I understand that the table name will be used when creating a loop object.
Question 1: But what is the number for, the one usually corresponding to Info 3? I thought it might be the res_model id from the ir_act_window table but I found a report that doesn't match (Crossovered analytic). Any idea what the number is for and how it is defined?
EDIT Answer 1: It is linked to the binding action. When creating a new report for an existing model, then an existing binding action value on this model should be incremented by one (well, that's the theory as I haven't tried yet).
Question 2: Why is the type "text" when Info 3 is a number? I guess it is the interpretation from python and that it is the way it is and this is the only way to configure the properties to operate with OpenERP. Can someone confirm?
Question 3: Why when I add Info 5 and Info 6, pointing out to another table, hoping to create a loop on a different table, it gets totally ignored?
Question 4: Why when binding to the server it doesn't ask me anything and doesn't add the report anywhere?
EDIT Answer 4: See Answer 1 as when changing the binding action index in "Info 3" to an existing binding action index in OpenERP then it pops the binding window up.
Thanks for reading this far! I am sure answers to these questions will help a lot of people understanding at least the basic connection between Openwriter and OpenERP.
EDIT: Thanks Amit for the formatting, it is much more readable this way and I will apply it to my next messages.
Not sure what Openwriter is - I suggest you try a different reporting engine. The easiest imo is the webkit html reports, you can use normal html and "mako" templating code to iterate through the objects.