javascript prettify for mdx - mdx

I am looking for a JavaScript library like Google prettify (doesn't support MDX) to display MDX expressions in HTML so they can be displayed with color, indentation and line numbers.
Does anybody know such a library?
Thanks

You can make a store procedure with the MDX script and then with web services and jscript you can add colors...etc.
Take a look at this example

Related

How to make web apps to read and analyze pdf file?

I have a project from my lecture to create a web apps to read and analyze a pdf file based on keywords. What kind of programming language that I can use?
Example : I need to find or check some keywords or data on the pdf file. If the keyword or data is exist and available, the result is true.
I usually work in javascript so could answer you in that, I had a great help from the below conversation, it might be a good help for you too.
extract text from pdf in Javascript

Alternatives to Coldfusion Report Builder

Anyone know of a good solution for pdf generation (preferably with a visual layout tool) that I can use from ColdFusion instead of the CF Report Builder? It should be able to accept cfquery input.
Basically is there anything better than the crusty Adobe offering out there?
EDIT: With CF 11 and the "pixel-to-pixel" rendering of "most" CSS and HTML (see https://wikidocs.adobe.com/wiki/display/coldfusionen/PDF+Generation+in+ColdFusion+11), I wonder if anyone has attempted to do anything along the lines of 'normal reports', like page numbering, page breaks, etc. - the more traditional 8.5"x11" oriented features. I'm a bit leery of trying to just do a drop-in replacement for CF Report Builder for this reason, knowing that HTML has no concept (in the browser) of discrete pages and page breaks.
obviously you can use cfdocument to what you want, but good luck getting it to look decent. however if you want to go down the route where you generate html using CFML and then have that outputted to a pdf, you can use wkhtmltopdf. If you want a report builder type application, you can use Jaspersoft Studio. BTW ACF's reporting engine is jasper reports under the hood.
Jasper reports is an alternative that Railo folks use, you could give that a try.
I don't think so. The closest thing I am aware of is DreamWeaver. It's been a while but I believe with a Remote Development Service (RDS) password you can build a full dynamic report using the WYSIWYG design view. Add CFDocument tags around it and you have a pdf report. I believe using CFDocument with HTML / CSS is what most developers use in lieu of Report Builder. I could be wrong but I've only seen it used once and judging by the lack of search results, I don't think it was received as well as it was hoped.
Of course you could always use crystal reports and continue using CFReport that way.
If you're using SQL Server you could get away with using SQL Server Reporting Services (SSRS).

pdf and netbeans

I am using netbeans to develop my project. I need to put a pdf on a website and according to certain conditions, only parts of the pdf should be view-able.For example, suppose payment made is rs.500. I will let the user view 2 chapters in the pdf for a period of one week. I have no idea how to do this.Can someone help me?
Since you're using NetBeans, I'll assume that you're using Java as your language.
You generate PDFs using either XSL-FO or something like iText. I prefer XSL-FO and Velocity templates, but your situation might be different.
The rules for what to display under different conditions need to be expressed in Java using controllers that accept a request, bind parameters to objects, execute rules, and stream the response as a PDF depending on the outcome. It's not an easy answer.
There are various Java viewers and several have plugins (there is one at http://www.jpedal.org/support_siNetBeans.php).
Your best bet would be to generate a copy of the PDF with just the pages allowed and then display that.

Parsing YouTube XML

I'm looking to do a little iOS app that uses has some very basic YouTube interaction. When I say basic, I really mean it: All it needs to do it pull in the uploads from a particular user, the videos' links, titles and maybe a thumbnail.
I've been looking at the Google developer docs for YouTube and nothing seems to be of help. It seems that the data is stored in an XML format, but it seems completely different to the structure of the sample XML in the docs. I don't know whether I'm using the wrong link (this is a sample of what I'm looking at now), but I just get a really messy XML document.
I've really no idea where to start on this one (with regards to a parser) - it just looks so messy. If someone could point me in the right direction with this, maybe even a with some sample code on a parser, I'd be incredibly grateful.
Thanks,
K
Have you considered making use of gdata-objectivec-client api http://code.google.com/p/gdata-objectivec-client/ It comes with samples which provide exactly what you are looking for.
Here's a very concise and easy-to-read example using NSXMLParser. It provides an example xml and shows you how to parse its elements and populate a custom object with the values.
i can suggest you to use LIBXML 2.2 it's easy to use and you can use Xpath Query to fetch whatever you want from any messy file.
To learn how to use that look at this page. link
The XML link you provided looks like the atom feed. If you don't feel like parsing the XML in your code, you can try the TouchRSS (https://github.com/TouchCode/TouchRSS) which I used to parse the youtube RSS feed. The RSS feed version should be in version 2 so the url you provide should change to http://gdata.youtube.com/feeds/base/users/DJ3Lau/uploads?orderby=updated&alt=rss&v=2.

PDF Generation Help needed

I am brandnew to PDF Generation or rendering but have a project to, create a PDF Template system that allows users to save Template to Database,
and later generate a PDF document using the template and values from my database.
Language to use C#
Questions
a) Is there a PDF tool out there that can help me with this and documentation I can study to learn of this?
b) Are there free tools out there for this?
c) How do I create a PDF Template? XML?
Thanks in Advance!
You should have a look at xsl:fo.
Apache has a tool which might be helpful.
You can use PHP to create and modify PDFs. (Everything below is completely free.)
Here are two extensive tutorials on generating PDFs in PHP:
http://blog.eirikhoem.net/index.php/2008/04/28/populate-pdf-templates-with-php-fpdf-fpdi/
http://www.astahost.com/info.php/create-pdf-php_t4972.html
You can use the FPDF library located here to handle generating PDFs based off of templates.
If You are using Java, you could try Docmosis or JODReports - they work from templates and can produce PDF output dynamically based on data and those templates. Depending on your template requirements, you might also be able to use Jasper Reports or Apache POI. All have free versions.
If you are looking for an instant solution, take a look on http://pdfnow.com . You can upload your XSL/FO-Templates and simply generate PDF-Templates with a simple webservice call.
I would give a shot to jsreport. You can install it on premise for free or use it online. It supports html -> pdf transformation using phantomjs or xml -> pdf transformation using apache fop.
The idea is that first you create report template using javascript templating engines like handlebars in jsreport studio and then you get back pdf by calling jsreport api.
If you are in c# there is jsreport c# sdk for it.
Note: I am the author of jsreport