Last change
on this file was 32205, checked in by ak19, 6 years ago |
First set of commits to do with implementing the new 'paged_html' output option of PDFPlugin that uses using xpdftools' new pdftohtml. So far tested only on Linux (64 bit), but things work there so I'm optimistically committing the changes since they work. 2. Committing the pre-built Linux binaries of XPDFtools for both 32 and 64 bit built by the XPDF group. 2. To use the correct bitness variant of xpdftools, setup.bash now exports the BITNESS env var, consulted by gsConvert.pl. 3. All the perl code changes to do with using xpdf tools' pdftohtml to generate paged_html and feed it in the desired form into GS(3): gsConvert.pl, PDFPlugin.pm and its parent ConvertBinaryPFile.pm have been modified to make it all work. xpdftools' pdftohtml generates a folder containing an html file and a screenshot for each page in a PDF (as well as an index.html linking to each page's html). However, we want a single html file that contains each individual 'page' html's content in a div, and need to do some further HTML style, attribute and structure modifications to massage the xpdftool output to what we want for GS. In order to parse and manipulate the HTML 'DOM' to do this, we're using the Mojo::DOM package that Dr Bainbridge found and which he's compiled up. Mojo::DOM is therefore also committed in this revision. Some further changes and some display fixes are required, but need to check with the others about that.
|
File size:
888 bytes
|
Line | |
---|
1 | package Mojo::HelloWorld;
|
---|
2 | use Mojo::Base 'Mojolicious';
|
---|
3 |
|
---|
4 | sub startup {
|
---|
5 | my $self = shift;
|
---|
6 | $self->log->level('error')->path(undef);
|
---|
7 | $self->routes->any(
|
---|
8 | '/*whatever' => {whatever => '', text => 'Your Mojo is working!'});
|
---|
9 | }
|
---|
10 |
|
---|
11 | 1;
|
---|
12 |
|
---|
13 | =encoding utf8
|
---|
14 |
|
---|
15 | =head1 NAME
|
---|
16 |
|
---|
17 | Mojo::HelloWorld - Hello World!
|
---|
18 |
|
---|
19 | =head1 SYNOPSIS
|
---|
20 |
|
---|
21 | use Mojo::HelloWorld;
|
---|
22 |
|
---|
23 | my $hello = Mojo::HelloWorld->new;
|
---|
24 | $hello->start;
|
---|
25 |
|
---|
26 | =head1 DESCRIPTION
|
---|
27 |
|
---|
28 | L<Mojo::HelloWorld> is the default L<Mojolicious> application, used mostly for
|
---|
29 | testing.
|
---|
30 |
|
---|
31 | =head1 ATTRIBUTES
|
---|
32 |
|
---|
33 | L<Mojo::HelloWorld> inherits all attributes from L<Mojolicious>.
|
---|
34 |
|
---|
35 | =head1 METHODS
|
---|
36 |
|
---|
37 | L<Mojo::HelloWorld> inherits all methods from L<Mojolicious> and implements the
|
---|
38 | following new ones.
|
---|
39 |
|
---|
40 | =head2 startup
|
---|
41 |
|
---|
42 | $hello->startup;
|
---|
43 |
|
---|
44 | Creates a catch-all route that renders a text message.
|
---|
45 |
|
---|
46 | =head1 SEE ALSO
|
---|
47 |
|
---|
48 | L<Mojolicious>, L<Mojolicious::Guides>, L<https://mojolicious.org>.
|
---|
49 |
|
---|
50 | =cut
|
---|
Note:
See
TracBrowser
for help on using the repository browser.