php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47434 PEAR Manual partial rendering to PDF file
Submitted: 2009-02-18 10:43 UTC Modified: 2021-08-03 14:29 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: pear at laurent-laville dot org Assigned: cmb (profile)
Status: Wont fix Package: Doc Build problem
PHP Version: Irrelevant OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pear at laurent-laville dot org
New email:
PHP Version: OS:

 

 [2009-02-18 10:43 UTC] pear at laurent-laville dot org
Description:
------------
Here are my try to generate partial PEAR Manual.

My choice is limited to one package (HTML_CSS) I know well and because there is also an image (<screenshot>).

As I got lot of tag "No mapper found" that exceed the limit of my DOS console, I've appended to command bellow the STDOUT+STDERR redirect to a temp result file.  ( > \temp\genresult.txt 2>&1 )


phd -f pdf -t phppdf 
    -p package.html.html-css 
    -o build/tmpdf -d .manual.xml 
    > \temp\genresult.txt 2>&1

Here are the summary list of E_USER_WARNING I got :

    No mapper found for 'format_qandadiv'
    No mapper found for 'format_screenshot'
    No mapper found for 'format_funcsynopsis'
    No mapper found for 'format_funcsynopsisinfo'
    No mapper found for 'format_funcprototype'
    No mapper found for 'format_paramdef'
    No mapper found for 'format_important'
    No mapper found for 'format_coref'

Partial content of log (temp\genresult.txt) is :

[11:13:51 - VERBOSE_INDEXING] Indexing...
[11:14:12 - VERBOSE_INDEXING] Indexing done
[11:14:12 - VERBOSE_FORMAT_RENDERING] Starting pdf rendering
[11:14:12 - VERBOSE_THEME_RENDERING] Using the php theme (phppdf)
[11:14:12 - VERBOSE_RENDER_STYLE] Running partial build
[11:14:20 - VERBOSE_PARTIAL_READING] Starting package.html.html-css...
[11:14:20 - E_USER_WARNING] C:\wamp\bin\php\php5.2.8\PEAR\phd\formats\pdf.php:312
    No mapper found for 'format_qandadiv'
 ... more ...
[11:14:21 - E_USER_WARNING] C:\wamp\bin\php\php5.2.8\PEAR\phd\formats\pdf.php:312
    No mapper found for 'format_coref'
[11:14:21 - VERBOSE_PARTIAL_READING] package.html.html-css done
[11:14:21 - VERBOSE_TOC_WRITING] Resolving Internal Links... ()
[11:14:21 - VERBOSE_TOC_WRITING] Writing PDF Manual ()
[11:14:21 - VERBOSE_FORMAT_RENDERING] Finished rendering

I copied the PDF result on :
http://www.laurent-laville.org/temp/noname.pdf

Initial result produced was withoutname (.pdf). I have renamed it from .pdf to noname.pdf to allow to see it !


My platform:
- Windows XP SP3
- PHP 5.2.8
- PhD 0.4.4
- Haru 2.0.8 (bundled with PHP)


Expected result:
----------------
A nice PDF document

Actual result:
--------------
Incomplete, and without name

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-19 08:54 UTC] cweiske@php.net
Sumatra PDF crashes opening the PDF, Adobe Reader displays it but shows a warning.
 [2012-04-06 20:11 UTC] bjori@php.net
The filenaming is fixed.

All the linux renderers I have used never complain over anything.

the 'no mapper found' notices aren't very important.

How exactly was the results incomplete?
 [2012-04-06 20:11 UTC] bjori@php.net
-Status: Verified +Status: Feedback
 [2012-04-09 15:39 UTC] pear at laurent-laville dot org
-Status: Feedback +Status: Open
 [2012-04-09 15:39 UTC] pear at laurent-laville dot org
Sorry but since I've opened the bug report (3 years ago), I think PhD has evolved. And myself I've stopped using it. I use now AsciiDoc Python solution.

I can't give any feedback
 [2021-08-03 14:29 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-03 14:29 UTC] cmb@php.net
The PDF renderer is known to be broken for many years, and since
it relies on the haru package, which is unmaintained, it is
unlikely to be ever fixed.  I think we can close this ticket.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 14 03:01:27 2025 UTC