Generate BIRT design from HTML page
Hello,
I'm working on a project that use Birt to generate HTML reports. However, until now those reports were pretty simple and ugly so we wanted to refactor them into something more convenient for us and for the client.
So, I made a mockup HTML in order to agree on what we wanted, and then I created a pseudo-html-template from it.
However, now that I want to use Birt to generate it, I can't find a way to create a design from my HTML file. And the thing is that the report is pretty complex to reproduce using Birt's editor (I'd even say impossible to reproduce as is).
So there is my question: is it possible to create a Birt's template from HTML? Or even better to use directly an HTML file with <value-of> tags (and foreach) as template?
My question seems pretty trivial, but I just can't find an answer on the web/forum (but maybe I'm just not looking for the good thing).
Also, do you think I should persue with Birt? Or should I use something like FreeMarker?
Thanks.
Michael.
Ps: If you want an example of the report I'm talking about, it would look to something like that: stuff.stooit.com/d/1/559505733459d/singletest-template2.html
A BIRT report is an XML file at it's core and is read/executed as such.
You can place a Text Element inside a report design and it can directly execute and display HTML code.
Looking at your sample, I am not aware of something that is going to directly convert the HTML you have created into a BIRT report design.
However, looking at the sample URL you have provided, I think that could be created using the report designer with grids and nested tables with grouping fairly easily. Without knowing more about your data source and reporting requirements it is hard for me to be specific.
Similar Messages
-
Generating PDF-files from HTML-page saved as Unicode?
I have followed this Quick Start on how to generate a PDF-file from HTML using web services in .NET: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000093.html
It works just fine when the html-page is saved as ANSI, but when it's saved as UNICODE I get problem. The code runs without errors but the PFD looks really strange. Any suggestions on how to solve this? I really need to use UNICODE as my application needs to handle different languages (including for example Chinese).I found out that UTF-8 worked as well so the problem is solved. :-)
-
Hello,
can i make script in the extendedScript toolkit(this script place document to indesign application) and run this script from html page?
or is there integration between extendedscript and html?
thanksHTML pages are usually displayed in web browsers, whose security model is designed specifically against any access to local resources, especially such calls to local applications.
Besides to browsers, on the Mac, the "Dashboard" allows you to write little applications "widgets" exactly the way you're suggesting. It uses WebKit to display HTML.
http://www.apple.com/downloads/dashboard/
In order to communicate with extendscript, you'd have to go through the operating system's command line.
http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashboard_ProgTopics /Articles/CommandLine.html
From there you'd invoke the scripting system with "OSAScript"
http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/osascript.1.html
then pass on your extendscript and arguments into InDesign via doScript.
Another alternative to the main HTML browser is AIR, which also has an instance of WebKit for HTML display.
http://livedocs.adobe.com/labs/air/1/quickstartshtml/
Apparently it is possible to invoke BridgeTalk - the Creative Suite's inter application communication used by extendscript - straight from AIR. I don't yet have references how to do that, found the link below just yesterday.
http://www.inthemod.com/bps/?p=165
Dirk -
Read Text from HTML-Pages and want to solve "ChangedCharSetException"
Hello,
I have an app that connect via threads with pages and parse them an gives me only the Text-version of a HTML-page. Works fine, but if it found a page, where the text is within images, than the whole app stopps and gave me the message:
javax.swing.text.ChangedCharSetException
at javax.swing.text.html.parser.DocumentParser.handleEmptyTag(DocumentParser.java:169)
at javax.swing.text.html.parser.Parser.startTag(Parser.java:372)
at javax.swing.text.html.parser.Parser.parseTag(Parser.java:1846)
at javax.swing.text.html.parser.Parser.parseContent(Parser.java:1881)
at javax.swing.text.html.parser.Parser.parse(Parser.java:2047)
at javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java:106)
at javax.swing.text.html.parser.ParserDelegator.parse(ParserDelegator.java:78)
at aufruf.main(aufruf.java:33)So I tried to catch them with "getCharSetSpec()" and "keyEqualsCharSet( )" from the class "javax.swing.text.ChangedCharSetException" and hoped that this solved the problem. But still doesen't work...
Then I looked at the web and found, that I have to add the line:
doc.putProperty("IgnoreCharsetDirective", new Boolean(true));"doc." is a new HTML Dokument, created with the HTMLEditorKit. I do not have much knowledge about that and so I hope, that someone can explain me, how I can solve that problem, within my code.
Here we go:
import javax.swing.text.*;
import java.lang.*;
import java.util.*;
import java.net.*;
import java.io.*;
import javax.swing.text.html.*;
import javax.swing.text.html.parser.*;
public class myParser extends Thread
private String name;
public void run()
try
URL viele = new URL(name); // "name" ia a variable with a lot of links
URLConnection hs = viele.openConnection();
hs.connect();
if (hs.getContentType().startsWith("text/html"))
InputStream is = hs.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
Lesen los = new Lesen();
ParserDelegator parser = new ParserDelegator();
parser.parse(br,los, false);
catch (MalformedURLException e)
System.err.print("Doesn't work");
catch (ChangedCharSetException e)
e.getCharSetSpec();
e.keyEqualsCharSet();
e.printStackTrace();
catch (Exception o)
public void vowi(String n)
name = n;
}and for the case that it is important here is the class "Lesen"
import java.net.*;
import java.io.*;
import javax.swing.text.*;
import javax.swing.text.html.*;
import javax.swing.text.html.parser.*;
class Lesen extends HTMLEditorKit.ParserCallback
public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
try
if ((t==HTML.Tag.P) || (t==HTML.Tag.H1) || (t==HTML.Tag.H2) || (t==HTML.Tag.H3) || (t==HTML.Tag.H4) || (t==HTML.Tag.H5) || (t==HTML.Tag.H6))
System.out.println();
catch (Exception q)
System.out.println(q.getMessage());
public void handleSimpleTag(HTML.Tag t,MutableAttributeSet a, int pos)
try
if (t==HTML.Tag.BR)
System.out.println(); // Neue Zeile
System.out.println();
catch (Exception qw)
System.out.println(qw.getMessage());
public void handleText(char[] data, int pos)
try
System.out.print(data); // prints the text from HTML-pages
catch (Exception ab)
System.out.println(ab.getMessage());
}Thanks a lot for helping...
Stephanparser.parse(br,los, false);
parser.parse(br,los, true); -
Designing Embedded HTML Page with iWeb
I designed a html page with with an embedded html page within it. It all looks fine in iWeb, but when I upload the page to the intenet and I try to view this page it does not come up properly. Although I initially see the page come up as I designed it (for a fraction of a second) it then disapears and I only see the page I embedded on my page.
I added the following codes in HTML Snippet:
<object data=http://www.mls.ca/PropertyResults.aspx?&vs=Residential&ret=300&curPage=PropertySearch.a spx&sts=0-0&beds=0-0&baths=0-0&bt=1%2c16%2c17&atsg=%2c&ci=cartierville&pro=4&mp= 500000-0-0&mrt=0-0-4&trt=2&of=1&ps=10&o=D width="600" height="400"> <embed src=http://www.mls.ca/PropertyResults.aspx?&vs=Residential&ret=300&curPage=PropertySearch.a spx&sts=0-0&beds=0-0&baths=0-0&bt=1%2c16%2c17&atsg=%2c&ci=cartierville&pro=4&mp= 500000-0-0&mrt=0-0-4&trt=2&of=1&ps=10&o=D width="600" height="400"> </embed> Embedd a web page within another web page. </object>
<object data=http://www.mls.ca width="600" height="400"> <embed src=http://www.mls.ca width="600" height="400"> </embed> Embedd a web page within another web page. </object>
As I said, the above pages come up fine in iWeb but not when I search them with Sagari.
Can someone please help with this. Thanks, PadanoThis is the proper code :
<iframe src="http://url.to.file.html" frameborder="0" width="500" height="500" scrolling="no" allowTransparency="true"></iframe>
You can also use this :
<div style="width: 650px; height: 650px">
<script language="JavaScript">
location.replace('../../../your files.html');
</script>
</div>
Source : iframe alternative in the HTML Snippet
And on this page you can see how to use <object> for html, png and jpg files :
Embed content with the <object> HTML element -
Parsing the FRAME tag from HTML pages
Hello to everybody,
I am trying to parse the A tags & the Frame tags from HTML pages. I have developed the code below, which works for the A tags but it does not work for the Frame tags. Is there any idea about this?
private void getLinks() throws Exception {
System.out.println(diskName);
links=new ArrayList();
frames=new ArrayList();
BufferedReader rd = new BufferedReader(new FileReader(diskName));
// Parse the HTML
EditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
doc.putProperty("IgnoreCharsetDirective", new Boolean(true));
try {
kit.read(rd, doc, 0);
catch (RuntimeException e) {return;}
// Find all the FRAME elements in the HTML document, It finds nothing
HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.FRAME);
while(it.isValid()) {
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
String frameSrc = (String)s.getAttribute(HTML.Attribute.SRC);
frames.add(frameSrc);
// Find all the A elements in the HTML document, it works ok
it = doc.getIterator(HTML.Tag.A);
while (it.isValid()) {
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
String link = (String)s.getAttribute(HTML.Attribute.HREF);
int endOfSet=it.getEndOffset(),
startOfSet=it.getStartOffset();
String text=doc.getText(startOfSet,endOfSet-startOfSet);
if (link != null)
links.add(new Link(link,text));
it.next();
}Hello to everybody,
I am trying to parse the A tags & the Frame tags from HTML pages. I have developed the code below, which works for the A tags but it does not work for the Frame tags. Is there any idea about this?
private void getLinks() throws Exception {
System.out.println(diskName);
links=new ArrayList();
frames=new ArrayList();
BufferedReader rd = new BufferedReader(new FileReader(diskName));
// Parse the HTML
EditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
doc.putProperty("IgnoreCharsetDirective", new Boolean(true));
try {
kit.read(rd, doc, 0);
catch (RuntimeException e) {return;}
// Find all the FRAME elements in the HTML document, It finds nothing
HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.FRAME);
while(it.isValid()) {
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
String frameSrc = (String)s.getAttribute(HTML.Attribute.SRC);
frames.add(frameSrc);
// Find all the A elements in the HTML document, it works ok
it = doc.getIterator(HTML.Tag.A);
while (it.isValid()) {
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
String link = (String)s.getAttribute(HTML.Attribute.HREF);
int endOfSet=it.getEndOffset(),
startOfSet=it.getStartOffset();
String text=doc.getText(startOfSet,endOfSet-startOfSet);
if (link != null)
links.add(new Link(link,text));
it.next();
} -
Hi,
how can we login in xMII from Html page? for example, if i give username and password in HTML page. that need to directly login in xMII? how can it do?
- senthilJeremy,
When I use the following URL to open a specific page, it works.
http://server/Lighthammer/Login.jsp?IllumLoginName=accountname&IllumLoginPassword=accountpassword&session=true&target=/Test/report.irpt
Question:
1) This URL opens the html or irpt page itself directly without the associated xMII navigation/menu and navigation bar. Is it possible to open the page with the associated xMII menu/navigation thro an URL -
XMII Login from Html page under xMII Version 12
Hi,
I found this thread
xMII Login from Html page
but I'm not sure this will also work under xMII Version 12.
I have now this question:
Is it possible to use a url login with loginname and password under xMII V12 similar this example for Version 11.5:
http://server/Lighthammer/Login.jsp?IllumLoginName=accountname&IllumLoginPassword=accountpassword&session=true&target=/Test/report.irpt
Many thanks in advanceHi,
Has anyone had any luck with this - displaying a v12 MII screen without requiring login?
We need to be able to do this as well in order to display read-only screens on large screen monitors on the manufacturing floor without requiring login to MII.
Under v11.5 it worked with no issues. Under v12, we haven't figured out how to do it yet.
I've waded through the NetWeaver UME documentation, have searched through the NetWeaver forums, etc. but to this point have had no luck in making it work.
We've tried enabling the UME Guest account, assigning Guest to the anonymous group and guest role (and xMII Users role), creating a Navigation for the Guest user, but still the NetWeaver login screen is displayed.
MII experts - if you are aware of how to do this can you please give detailed instructions instead of just referencing the NetWeaver / UME documentation?
Thank you for your help! -
How to send information from HTML page to JSP without reloading HTML page?
Hello,
Is it possible to send information(row number selected by user) from HTML page to JSP without reloading HTML page?
Thanks.
Oleg.Yes, you can do this with framesets and a hidden frame.
You need a bit of JavaScritp in the "visible" frame that
sets the location of the hidden frame to the JSP.
Add the user's choice as a parameter to the JSP URL. -
Get parameters from html page from java application standalone ...
Hi all,
I work in one solution that i have values in Html Page and i want get the parameters values from html and cath they in java application standalone.
The Html page is in same host than de java application.
I want know if this is possible. I wnat know if without HttpServlet i can get the parameters from Html Page pure.
Thanks in Advance for the ideas,
Antonio.Hi Abdul,
The problem is my client want one solution where i have one page simple page Html and one application java standalone. This application runs in one machine, but we don't have web server. So the question is: Is possible without web server i can get the parameters values that is inside the html page from java application. I remember you that the application java is one .jar that run's with one command line from crontab "java -jar teste.jar". -
Page length problem in PDFs generated from HTML pages in Acrobat
I just spent an exhausting 2-1/2 hours on the phone with Adobe tech support (offshore) in order to get a 5 minute fix. I figured that I'd document it here in case another user has the same problem. (I'd checked the forums and a few e-mail lists and hadn't found a solution.)
When generating PDFs from HTML (Web) pages, Acrobat squeezed all of the text into the middle of a single page (with just the last inch or so of text on page 2). This resulted in pages that Acrobat identified as being 30", 40", even 60" long, and the printed results were unusable. I haven't been able to identify an event or a system change that caused this to happen; Acrobat had been generating PDFs properly before this trouble started.
THE FIX:
1. Start Acrobat and run the Repair Installation option from the Help menu.
2. Go to C:\Documents and Settings\user\Application Data\Adobe\Acrobat\8.0
and rename the Preferences file to PreferencesOld. A PC restart will be
required after this change.
3. Restart Acrobat. This creates a fresh Preferences folder.
4. Test creating PDFs from a single HTML page and from multiple pages.Thanks, Bernd, but where are these settings? While I'm writing, is there a setting to make an html file fit on one page in Acrobat?
-
Create accessible pdf from html pages dynamically
Hello,
I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
Some of the issues encountered are: incorrect tab order, some links are not tabbable while others are, link text is being read “Blank”, some text is skipped while tabbing, missing alt text for images, page being rendered in the responsive(mobile) view, etc.
I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
Attached is a sample PDF generated from a simple HTML page I created for demo.
My questions are:
Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
Your help is much appreciated.
Thanks,
AnupI created a tool that does just that (only you will need to enter the page numbers as text, it does not work by selecting them):
Acrobat -- Extract Non-Sequential Pages: http://try67.blogspot.com/2011/04/acrobat-extract-non-sequential-pages.html -
Create accessible pdf from html page
Hello,
I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
Some of the issues encountered are: incorrect tab order, some links are not tabbable while others are, link text is being read “Blank”, some text is skipped while tabbing, missing alt text for images, page being rendered in the responsive(mobile) view, etc.
I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
Attached is a sample PDF generated from a simple HTML page I created for demo.
My questions are:
Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
Your help is much appreciated.
Thanks,
AnupI don't think it's possible to do this using a standard JavaScript script in Acrobat, since the newDoc function doesn't work with URLs.
The only option I can think of is to use an external automator that will call the Create PDF From Web Page dialog, paste the address from a file, and after the PDF file is created will continue to the next line.
I might be able to create such a tool for you. If you're interested, contact me by email (click my username for the address) or PM. -
How link from html page to a specific frame in flash cs5 as3
Hi!
I'm kinda new around here. I am interested in knowing how to link from a specific html page to a specific frame in flash cs5 as3.
I have a website that I originally began to design in flash but later started developing new pages for it in html. The flash part of it has several pages on different frames and I have created links from the flash part to the other html pages, but, I can only link the html pages back to the main flash home page, and not the other pages in the flash part of the website.
I have read that in cs3 it was possible using the flashvars skip variable, but I don't know how to do it. I have not yet seen any working examples and I could not find any instructions / tutorials online for cs5.
Can someone help here?add a query string, to the swf's embedding html, with variable/value indicating the frame you want to display in your swf. add a javascript function to return the query string (or entire url), call the javascript function from flash using the externalinterface class. and finally add code to your swf to parse the returned url or query string, parse it and then direct your timeline to the appropriate frame.
-
Create multiple pdf files from html pages
I have 15 html pages that I need to convert (possibly several times a day) into pdf files, and I need to get the process as automated as possible. I own an Acrobat Pro 8 license.
1) is there a command line I can launch to do this automatically?
2) failing that, is there a way of launching several conversions at a time? There seems to be lot of talk about creating one pdf from several files, but what I want is to convert several html file into several pdf files
thanksManaged it at last, was a bit of a hassle -
(there was an erroneous error message saying I hadn't selected any files, when I had)
Note For future readers: to do just a batch conversion, you have to ignore the "commands" section, which isn't intuitive, as it is bang in the middle and looks like the main feature...
Maybe you are looking for
-
Hi, I have a MBP 15" with an Envision external monitor hooked to it. When I bring it out from the Screen Saver, the Laptop LCD has this bluish tint to it. I click system preferences, display and "bam" problem solved. But the reoccurring problem is th
-
ATV2 - 4.2.2 Update - Video stream from desktop quits after 2 minutes
ATV2 - 4.2.2 Update - Video stream from desktop quits after 3 minutes after most recent ATV2 software update ATV2 is connected wired to router, desktop is 802.11n
-
I have an entity hierarchy as follows: Total Consol (USD Entity) Sub-Consol (USD Entity) Parent 1 (CAD Entity) Dept A (CAD Entity) Dept B (CAD Entity) after data is translated to USD (Parent 1 to Sub-Consol), I find that I have a couple of difference
-
Loading IBM Resource adaptor mqjbnd.so in weblogic 11
Hi, We are trying to use IBM resource adaptor with weblogic 11 for MQ integration. The environment is 64 bit. In AIX environment, an error is occurring that mqjbnd native library not found. mqjbnd is a .so file extension. Is there any specific way
-
Reminder: Ask the Experts Session on WSIT and Project Tango, April 30-May 4
This is a reminder about the Ask the Experts session on Web Services Interoperability Technology, WSIT (http://java.sun.com/webservices/interop/) and Project Tango (https://wsit.dev.java.net/). If you've got a question about about these initiatives f