﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
14113	external links get prefixed with ????	defect	1.2		new	2022-02-14T11:14:03+01:00	2022-02-14T11:24:33+01:00	"External links get prefixed with some quesion mark signs in the PDF output.

Wiki Text of the test page:

{{{
= Test page for PDF output

Link: https://example.com/

Longer link: https://subdomain.example.com/this/is/a/long/link
}}}

Sometimes, the links get even multiple ? signs, but I couldn't reproduce that with this test page.

HTMLDoc version: 1.8.27"	Joachim Mairböck
11859	[PATCH] Fix plugin for Trac >= v1.0	enhancement	1.0		new	2014-07-07T13:53:00+02:00	2017-09-06T23:00:13+02:00	"
The patch attached addresses the missing images from the generated pdf. In past trac versions, attached file paths were more easily found from the filesystem. Now they are hashed into the filesystem.

Issues solved:

- Images are now included in generated pdf
- Book creation bug when getting wiki page names fixed
- Not using 'utf-8' as codepage since it is not supported by htmldoc 1.8. Instead using ISO-8859-1 fixes output for characters such as 'ä'

This has been tested with Trac v 1.0.1 and the latest development trunk. Don't forget to set base_dir under [wikitopdf] to your trac project environment as a folder path, e.g. /var/lib/trac/test_environment.
"	Miguel Ferreira
9174	Option to put PageTitle at top of pdf for wikitopdf single page	defect	0.12		new	2011-09-12T19:32:46+02:00	2018-09-27T22:49:55+02:00	It'd be really nice to have an option to add the page title to the TOP of a pdf.  We use the breadcrumbs here to show page title and so it's not generally ON the page.  Any help appreciated, but I am trying to patch it in myself. 	branson
4043	Linked images in PDF don't work properly	defect	0.11		new	2008-11-06T15:40:10+01:00	2018-09-27T22:49:55+02:00	"In the PDF the links on images should be improved, with one enhancement and one defect-fix:

 == Enhancement ==

In the Wiki-output, the links point to the raw attachment (raw-attachment/wiki/[page name]/[image name]. In this case, it would be better to link to the ""attachment page"" in the wiki (attachment/wiki/[page name]/[image name]) so that the image is viewed in context and in the browser rather than having to be downloaded and saved or viewed with a local image editor.

 == Defect fix ==

Additionally, in single-page output, the links on images point to wiki/[image name] rather than attachment/wiki/[page name]/[image name] and so clicking on the image in the PDF gets a ""describe [image name]"" page rather than the image. This should behave as for wiki output (with the suggested enhancement!)."	anonymous
4616	Simplify the creation of multi-page documents	enhancement	0.11	Nickolas Grigoriadis	assigned	2009-02-12T15:56:12+01:00	2021-11-16T15:22:54+01:00	"The patch allows the definition of a document on a wiki page like follows:
{{{
----

Anything between the two horizontal lines will be put on the title page.

The configured title page is not used.

----

In the section all linked pages are added to the document. The links must be in the following format:
 * [wiki:Chapter1]
 * [wiki:Chapter2]
 * [wiki:Chapter3]
 * ...
Everything besides the links is ignored.
}}}

"	mvlcek
3465	'NoneType' object has no attribute 'endswith'	defect	0.11		new	2008-07-27T23:08:52+02:00	2019-02-18T08:00:59+01:00	"Hi,

I encounter the following problem when trying to use 'wikitopdf' option: 

{{{
Error: Macro TOC(None) failed
'NoneType' object has no attribute 'endswith'
}}}

"	anonymous
3779	No PDF Export - Problem with template_path - probable reason found	defect	0.11		new	2008-09-22T16:32:28+02:00	2018-09-27T22:49:55+02:00	"I get an internal error, when I want to use the TracWikiToPdfPlugin
{{{
Python Traceback

Traceback (most recent call last):
  File ""/var/lib/python-support/python2.5/trac/web/main.py"", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File ""/var/lib/python-support/python2.5/trac/web/main.py"", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File ""/usr/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev_r5911-py2.5.egg/webadmin/web_ui.py"", line 119, in process_request
    path_info)
  File ""build/bdist.linux-i686/egg/wikitopdf/web_ui.py"", line 61, in process_admin_request
    return formats[format]['provider'].process_wikitopdf(req, format, title, subject, rightpages, date, version, rightpages[0])
  File ""build/bdist.linux-i686/egg/wikitopdf/formats.py"", line 50, in process_wikitopdf
    titlefile = self.get_titlepage(title_template, title, subject, date, version)
  File ""build/bdist.linux-i686/egg/wikitopdf/formats.py"", line 133, in get_titlepage
    file_page = open(template_path, 'r')
IOError: [Errno 2] No such file or directory: ''
}}}"	anonymous
4283	If code block is larger than page left alignment is more readable than a centered one.	enhancement	0.11		new	2008-12-15T14:33:28+01:00	2020-05-01T06:51:13+02:00	"
Everything is in the summary."	Sébastien GISSINGER
4304	Trac crashes when trying to export pages containing attachments	defect	0.11		new	2008-12-18T12:14:00+01:00	2018-09-27T22:49:55+02:00	"I just tried to export a selection of wiki pages from the admin interface. So I selected the pages, transferred them to the ""selected pages"" block, and hit the ""create"" button. The result was just an error stack displayed in the browser - but no PDF created. Error stack ends with:
{{{
TypeError: sequence item 0: expected string, NoneType found
}}}
(complete stack attached).

Configuration issue? Template issue, as the trace suggests (maybe connected to the problem described in #3779)? I used the latest code from SVN with the latest stable code of Trac 0.11 on Ubuntu 8.04.1 (Python 2.5.2, Genshi 0.5.1)."	izzy
4689	Please add support for the ScreenshotsPlugin	enhancement	0.11		new	2009-02-24T12:19:50+01:00	2018-09-27T22:49:55+02:00	It would be great if the ScreenshotsPlugin was supported here. I use it a lot in the manual pages of my wiki, since it has several advantages over the image macro - and I guess I'm not the only one :)	izzy
4690	page breaks: paragraph/headings handling etc.	enhancement	0.11	Nickolas Grigoriadis	assigned	2009-02-24T12:44:57+01:00	2009-05-05T13:01:48+02:00	"If possible, content could be handled a bit better on page breaks. At the moment it can (and does) happen, that a heading is the last line on a page, and the corresponding paragraph starts on the next page - in those cases, the paragraph should go to the next page as well. This applies to:
 * Headings: No heading in the last line of a page - move it to the next
 * Tables: Do not end a page with the first line of a table - move it to the next. Here could be a configuration item on how many table rows to keep together, but obviously we have to split the table at least when it's longer than a page.
 * !{{{ Code }}}: Do not end the page with the first line of it - move it to the next
 * lists: the same (it simply does not look nice otherwise)
 * paragraphs: optional setting for ''orphans'' (single line(s) at page end) and ''widows'' (single line(s) at page start), which also could apply to tables, code, and lists
"	izzy
4915	Language-specific cover pages	enhancement	0.11		new	2009-04-13T15:19:34+02:00	2018-09-27T22:49:55+02:00	"I needed language-specific cover pages, so I tweaked the code a bit. Due to a lot of patches already involved, dependencies had to be considered (hopefully someone will include them ASAP in the repository code to make this task easier), so the attached patches...
 * expect tracwikitopdf-dynimg.patch from #3483 (dated 01/14/09) to be applied '''''before'''''. Though this ticket is already closed, that patch does not seem to be applied to the repository code (correct me if I'm wrong).
 * are cumulatively including the multiformat patch from #4747, which cumulatively includes the titlefile patch from #4696
The tail is already long enough - hopefully it will get shorter as soon as code gets integrated into the repository.

So after having the patches applied, the Admin-form will offer a new field ""Language"". Put in the language extension here (e.g. ""en"" for English, ""de"" for German). In the cover directory, you should have a corresponding cover file - for the example given, ""cover.html.en"" for English, ""cover.html.de"" for German.

If there are questions, append them to this ticket - I'll try my best to answer them."	izzy
5163	htmldoc needs --jpeg to create usable size pdfs	defect	0.11		new	2009-04-30T13:10:49+02:00	2018-09-27T22:49:55+02:00	"I have a trac Page with 4 images.

{{{
[root@s100 ~]# ls -l /srv/trac/psuc/attachments/wiki/BilderDoku/ -h
total 728K
-rw-r--r-- 1 apache apache 191K 2009-04-29 20:06 2009042....jpg
-rw-r--r-- 1 apache apache 175K 2009-04-29 20:12 20090429...f.jpg
-rw-r--r-- 1 apache apache 162K 2009-04-29 20:05 20090429...t.jpg
-rw-r--r-- 1 apache apache 179K 2009-04-29 20:04 verf...keit.jpg
}}}

Exporting this page as pdf results in a 17MB pdf.

I reproduced this on the commandline.
{{{
[root@s100 ~]# htmldoc test.html --jpeg=90 --format pdf14 --webpage -f jpeg.pdf
PAGES: 4
BYTES: 1217910
[root@s100 ~]# htmldoc test.html --format pdf14 --webpage -f raw.pdf
PAGES: 4
BYTES: 17382511
[root@s100 ~]# ll jpeg.pdf raw.pdf -h
-rw-r--r-- 1 root root 1.2M 2009-04-30 12:52 jpeg.pdf
-rw-r--r-- 1 root root  17M 2009-04-30 12:54 raw.pdf
}}}

I'd suggest to add the --jpeg option by default."	anonymous
5311	PDF not exporting images inserted using HTML markup	defect	0.11		new	2009-06-02T06:49:07+02:00	2018-09-27T22:49:55+02:00	"My pdf exports are not exporting images that are displayed using html normal markup:

Example:
{{{
-->#!html
<div align=""center"">
<img src=""http://www.coldboxframework.com/includes/imagelibrary/ColdboxPlatform.png"" width=""750"" style=""border: 1px outset #eaeaea"">
</div>
}}}

Is this normal behavior of the PDF?"	anonymous
5442	Image Download don't work if linked to source instead of wiki	defect	0.11	Ryan J Ollos	accepted	2009-06-27T22:24:31+02:00	2022-05-08T21:16:22+02:00	"I like to add an Image from the source repository. It seem's it doesn't work at all. There is no error in the logfile.

For example:

{{{ [[Image(source:/trunk/project/src/test/model/test.gif)]] }}}

"	dirk.hoffmann@…
5490	Create a PDF from a Report and Ticket(s)	enhancement	0.11		new	2009-07-08T18:09:29+02:00	2018-09-27T22:49:55+02:00	It would be a nice enhancement if a Report could be exported to PDF using a WikiToPDF link at the bottom of the page.  Ideally this would preserve all of the hyperlinks in the report.	Ryan J Ollos
5855	"set width=""100%"" height=""100%"" on images"	defect	0.11		new	2009-09-22T15:42:42+02:00	2018-09-27T22:49:55+02:00	"Images that are too large for the page are better off scaled, than cropped.

I think setting these two values is better default behaviour.  Looks far better on my site anyway."	bugs@…
5864	Pages without titles (such as =TitleName=) cause the generation of a 0 byte PDF in multi-page PDFs	defect	0.11		new	2009-09-23T15:39:33+02:00	2018-09-27T22:49:55+02:00	"I suspect this is due to attempting to generate a TOC for the PDF w/ a null entry.  However best approach would be to simply not include a TOC entry for that page.

The workaround is to add a title or remove that page when generating multi-page PDFs"	bugs@…
5915	Cells (e.g. in tables) get messed up	defect	0.11		new	2009-10-04T23:45:19+02:00	2018-09-27T22:49:55+02:00	I just noticed recently that cells (e.g. in tables) get messed up with strings like `cell=0x8145bd0 [0,1]` (see attached screenshot). I don't remember that happened before - neither I know what could have caused it. I didn't touch my Trac installation in the last time (i.e. since I got the last clean PDF out), so I'm not sure where or what to look for. And before one asks: No, htmldoc also was not updated AFAIK. My installation is on Linux. Any help appreciated - since I need to get out a clean PDF before updating the content for a new version of the software described in that wiki...	izzy
6588	Option to append wiki page source, date/time, and revision info	enhancement	0.11		new	2010-02-08T21:59:12+01:00	2018-09-27T22:49:55+02:00	"I've been able to include date/time of export information in the footer of wiki pages using the available options, however it would be nice to have the option to append something like the following to the end of each exported wiki page:

----

''Exported by <username> on <date> from <url> at page revision <rev>.''"	Ryan J Ollos
4316	Convert all pages with a certain tag	enhancement	0.10		new	2008-12-21T15:07:16+01:00	2019-02-18T08:07:30+01:00	"it would be nice if one could print all the pages having a certain TracTag ... even if i am unsure how to order it then.
"	rupert thurner
