[solved] asciidoc -- pdf/roff

Hi,
I am playing around with asciidoc, and already can convert some stuff to html, but not to pdf/roff. This is done by a script called a2x. According to the manpage, this requires:
- xsltproc (presumably named libxslt in Arch)
- DocBook XSL Stylesheets (docbook-xsl)
- FOP (for PDF file generation)
- Lynx (for text file generation)
fop is from AUR, and I to had rename /usr/bin/fop (a simple link to the file in /var/abs/local) to /usr/bin/fop.sh. But still, I get errors like this:
[tlaloc@archbox ~]$ a2x -f pdf TODOS2.txt
Making portrait pages on A4 paper (210mmx297mm)
07.04.2008 13:43:21 org.apache.fop.cli.Main startFOP
SCHWERWIEGEND: Exception
javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/home/tlaloc/./TODOS2.fo:1:25385: Error(1/25385): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)
javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/home/tlaloc/./TODOS2.fo:1:25385: Error(1/25385): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)
Caused by: org.apache.fop.apps.FOPException: file:/home/tlaloc/./TODOS2.fo:1:25385: Error(1/25385): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
<snip>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
<snip>
org.apache.fop.apps.FOPException: file:/home/tlaloc/./TODOS2.fo:1:25385: Error(1/25385): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:214)
<snip>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
<snip>
a2x: failed: fop.sh "./TODOS2.fo" "./TODOS2.pdf"
[tlaloc@archbox ~]$
Does anyone has more insight to /experience with this.
Best regards,
Matt
Last edited by tlaloc (2008-05-05 11:50:26)

I have made a new PKGBUILD for fop using version 0.20.5 (as recommended here).
It worked with a2x.
# Contributor: Mildred <[email protected]>
# Mantainer: Andres Blanc <[email protected]>
pkgname=fop
pkgver=0.20.5
pkgrel=1
pkgdesc="XSL-FO Apache processor. Transform XSL-FO documents into various formats like PDF, PS, SVG and more"
arch=(i686)
url="http://xmlgraphics.apache.org/fop/"
license=('APACHE')
depends=('java-runtime')
source=("http://archive.apache.org/dist/xml/fop/binaries/fop-$pkgver-bin.tar.gz")
md5sums=('d6b43e3eddf9378536ad8127bc057d41')
build() {
mkdir "$startdir/pkg/opt"
mkdir -p "$startdir/pkg/usr/bin"
cp -r "$startdir/src/fop-$pkgver" "$startdir/pkg/opt/fop"
ln -s /opt/fop/fop.sh $startdir/pkg/usr/bin/fop.sh || return 1
return 0
You can also use dblatex to convert from docbook to pdf using latex. It is in AUR.
I hope it helped.

Similar Messages

  • [SOLVED]New .pdf files won't open in Gnome

    Hi all,
    Just noticed this today; seems easy to replicate, just print a pdf somewhere, or download one, and attempt to open it with nautilus.  I don't get a preview of what the file looks like before opening, and upon double-click, evince merely flashes up for a moment and closes.  ePDFviewer has a similar effect.  Deleting ~/.thumbnails/fail doesn't regenerate a preview either.  Also, old pdf files keep their previews and open fine. 
    I'm going to blame something within the very recent gnome update.  Any help with this one?
    Apologies if this is somewhere else; I couldn't see anyone mention it, and it seems like an obvious bug :S
    Last edited by o1911 (2010-10-07 14:55:24)

    I have the same problem. I can't open some pdf files with evince. But I don't think it's a evince problem. I tried with apvlv and both give me segmentation fault. There is a problem with some package that avoid me to open some pdf files? This start to happen, if I notice, after the upgrade of gnome related packages I think.
    I can open all my pdf files in my computer and as well some of random pdfs found at internet.
    This is one of the the pdf I can't open: http://www.fct.unl.pt/estudante/datas/2 … _final.pdf
    I tried on debian squeeze (I have installed on a virtual machine) and I could open. That's why I think this is related somehow with the new gnome packages.
    Last edited by ilusi0n (2010-10-06 18:39:33)

  • [SOLVED] Display PDF in Chromium

    One of Chrome's feature that I love is the built-in PDF display. Unfortunately, I haven't been able to do this in Chromium (I'm on gnome 3, by the way). Is PDF rendering actually only available in Chrome, or can I do something so that Chromium doesn't download PDF files but instead displays them?
    Last edited by splatterdash (2011-09-13 09:26:16)

    https://wiki.archlinux.org/index.php/Ch … e_Chromium

  • Adobe Reader X & Vista dilemma solved. PDF files were opening a blank page.

    OPEN Adobe Reader X
    Click on EDIT
    Click on PREFERENCES
    Deselect DISPLAY PDF IN BROWSER
    Click OK
    Exit Adobe Reader
    Now my Bank Statement PDF's open properly.
    -blestwhun

    Hi All,
    We have had a few bug reports related to Adobe Reader X protected mode coming in from you in this forum. We have addressed a large number of them in our upcoming Reader update and we would like to hear your feedback.
    To that extent, we would like to invite you to the Adobe Reader Prerelease program and try out the latest build. To participate, please fill in the form available at https://www.adobe.com/cfusion/mmform/index.cfm?name=reader_prerelease_ interest and indicate Adobe Reader as the product of your interest.
    We look forward to your active participation, feedback and help towards making Reader a better product.
    Thanks and regards,
    Adobe Prerelease Team

  • [solved] two pdf-presentations - switching slides simultaneously

    [note: I changed the subject to better suit the solution we found. (orig: dual head: two WMs, one keyboard -> I want simultaneous input!)]
    Apart from my Xinerama setup I configured Xorg to run separte WMs on both screens. By default only one of them has the mouse and/or keyboard focus.
    But I would like to have simultaneous input, especially for the keyboard!
    It's for a talk at a conference for which I have created a (pdf) presentation. What I'm trying to do is running two versions of my presentation, each on one of the heads. The beamer VGA-ouput shall show the plain presentation, while my laptop ought to give me additional notes. However, both heads should change slides simultaneously with one single click.
    Any ideas on how to get simultaneous input on both screens? Or might there be another goal to achive this. All I want is two instances of xpdf that both change slides on hitting space-key. I don't really care how it is done, two heads sharing the same input was just my first idea.
    Last edited by saciel (2008-03-17 03:57:41)

    So here is what I call SI(E)Mple PREsentation -- siempre -- for now. A very rudimental shell script solution. Siempre can open two pdf-files and manages the creation and deletion of the required keybindings. The two instances have to be arranged on the screen(s) manually after. Maybe I'll add some more options later.
    #!/bin/bash
    #SI(E)Mple PREsentation - start two instances of xpdf with simultaneous page
    # turning enabled;
    if test \( -z $2 \); then echo "Usage: siempre <file.for.audience> <file.with.notes>"; exit; fi
    # commandline-parameters are kept simple for now; you can just pass the name
    # of two pdf-files; spaces in file names are NOT SUPPORTED;
    BEAMER=$1;
    NOTES=$2;
    # path to your standard xpdfrc file:
    CONFIG="~/.xpdfrc"; #/etc/xpdfrc
    # create a temporary xpdfrc (based on existing configuration), adding
    # keybindings for simultaneous page-turning; any previous bindings for 'space'
    # and 'backspace' are overwritten;
    mkdir /tmp/siempre;
    if test \( -n "$CONFIG" \); then cp $CONFIG /tmp/siempre/xpdfrc; fi
    echo "bind space any nextPage run(/tmp/siempre/xpdf_next)" | cat - >> /tmp/siempre/xpdfrc;
    echo "bind backspace any prevPage run(/tmp/siempre/xpdf_prev)" | cat - >> /tmp/siempre/xpdfrc;
    # create temporary scripts for page-turning in the remote session; this is
    # necessary as the "run" command in the keybindings cannot handle spaces;
    echo -e "#!/bin/bash\nxpdf -remote 2ndInstance -exec nextPage" > /tmp/siempre/xpdf_next;
    echo -e "#!/bin/bash\nxpdf -remote 2ndInstance -exec prevPage" > /tmp/siempre/xpdf_prev;
    chmod 744 /tmp/siempre/xpdf_{next,prev};
    # invoke both instances of xpdf; first one is the beamer presentation, second
    # one is for additonal notes; kill the note-instance when the main presentation
    # is closed;
    xpdf -remote 2ndInstance $NOTES & xpdf -cfg /tmp/siempre/xpdfrc $BEAMER;
    xpdf -remote 2ndInstance -quit;
    # delete temporary files;
    rm -r /tmp/siempre/;
    Last edited by saciel (2008-03-17 13:38:05)

  • Clicking on an email address in a pdf opens MS Word

    Hi, a little advice if I may.
    I am in the situation where people often send me an email with a .pdf attached.
    If I click on the attachment, it opens in Adobe Reader, as I would expect.
    There is an email address in the .pdf document, which is "clickable"
    but if I click it, it does not open a new message window in my chosen mail client (Thunderbird), and it doesn't even open it in Outlook Express as I might expect.
    Instead a small window opens that says:
    "Microsoft Outlook - Starting MS Word as your email Editor."
    I eventually worked out how to stop Outlook using Word as it's email editor, but as I have NEVER used Outlook, I would like to force Abobe Reader to open email addresses in Thunderbird instead.
    But I cannot find anything in Adobe Reader's options or settings to define the mail client to be used.
    Can anyone advise on how to achieve this, please?
    Many thanks.
    (I realise this is an identical question to http://forums.adobe.com/message/4183440#4183440, but that got no replies)

    Hi. Thanks for the speedy reply.
    Aha... it looks like there was some argument or fight going on about which program called itself "default"
    As far as I'm aware, Thunderbird was definitely set as the default Mail Client, and if I click on a "mail to:" link in a website, the Thunderbird composition has window always opened..
    Same with Word... a typed email address always opens a Thunderbird window when I click on it. (or Ctrl Click actually, as that's how I have Word set up)
    I double checked that just now and even If I take one of the addresses in the .pdf docs which open in Outlook, and copy and paste the them into Word and they now open in Thunderbird.
    I double-checked in my T.Bird preferences and saw there's a tickbox for "Always check to see if Thunderbird is the default mail client on startup" - and that was already ticked.
    BUT... I thought I remembered seeing settings for default programs in Windows Control Panel "Internet Options" and when I looked there, sure enough, somehow that had been switched to Outlook.
    Switching it back has solved the .pdf issue (as you'd expect!)
    So I reckon there's something subtly screwed in my Windows Install where it's not entiely clear which is the default.
    Thanks for pointing me in the right direction - lesson learnt, don't ASSUME anything!

  • PDF files and address books

    I am no longer able to open any PDF file. When I try to do so the screen on the PDF file is black and I cannot view the content of the file.  Also, I am unable to open my address book.  There is a shadow "question mark" image over the book.  Any help on either of these issues would be greatly appreciated.  I did check another forum which suggested uninstalling Adobe Reader to solve the PDF issue.  I have uninstalled this program however, it has not helped. Thnx.

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • DEP Print Crash (Reader 9.3.2) - Help please?

    Help please anyone?
    Window DEP (Deta Execution Protection) stops me printing pdfs and the print crashes.
    If I tick/check DEP to allow me to use Reader 9 that makes NO difference even though it says if should.
    I'm using Reader 9.3.2 - not an earlier version - and the print crash happens either in Reader, using it alone, or when I open a pdf in IE or Firefox.
    I am running XP SP3, recently updated from SP2   (there maybe a connecton - was it the XP3 update which did it?)
    This is very frustrating. I don't want to abandon Adobe Reader and use a different company's  program but I have wasted hours so far tring to find a fix for this.
    Incidentally fiddling with Javascript [Reader>Edit>Preferences>Untick Enable Acrobat JavaScript] which is one recommended fix whichdoesn't work.
    Maybe there any other files I can get DEP to ignore? (NB they all have to be .exe files so be sure to tell me where to find them!)
    All advice gratefully received. I am SOooo fed up with this.
    Thanks!

    All I know is that I can't print from Adobe Reader any more but I can print pdfs since I replaced it with Foxit Reader.
    I suspect this is maybe connected with my XP upgrade from SP2 to SP3.
    I knew it might mess things up and this happened soon after. I also can't print AT ALL from Firefox now and that happened at the same time too.
    Microsoft again....? Who knows. I have solved my pdf printing problem a roundabout way, but not my Firefox problem - tho that isn't for this forum!

  • Preview show bad character size

    Preview is showing bad font size(to big) in some PDF (no special font). the same PDF was allright in leopard and is good with acrobat.
    You can see attached picture.
    Any idea why ?

    It won't solve your PDF problems, but I would un-install MacKeeper and consider un-installing SIMBL.
    Myth of the Dirty Mac
    MacKeeper – Do Not Install
    MacKeeper – Do Not Install (2)        See  SDW2001’s post
    MacKeeper – Do Not Install (3)
    MacKeeper Removal
    SIMBL Uninstall
    SIMBL Uninstall (2)     See solution posted by Linc Davis .

  • Firefox crashes when opening any Adobe pdf document from internet. This only seems to happens with firefox 6.0.2. Pls assist how to solve problem

    Good day,
    Please note Firefox is crashing every time I tried to open a pdf document I find in any internet webside. This is happening since I have installed Firefox 6.0.2. I temporarily solved the issue going back to Firefox 5. The problem is that my Mac installs automatically all the updates that might come from Firefox, including new or greater versions.... So, here I am again with Firefox 6.0.2 and not able to open Adobe pdf documents.....
    Would you please kindly assist to fix this issue...? Please note I have systematically sent a report every time Firefox has crashed, so you might have quite a few by now!
    Many thanks in advance for all your help and assistance.
    Francesca.

    * Preferences that have been modified are shown as '''bold (user set)'''.
    * Preferences can be '''Reset to the default''' or changed via the right-click context menu.
    The preferences on which Reset is greyed (not available), are they appearing in Bold Text or Normal ??

  • I have a client that uses Windows that has recently told me she can no longer open the PDFs I send her. I can't find this elusive "Always Send Windows-Friendly Attachments" setting that I have read may solve my problem. Can someone get me there?

    I have a client that uses Windows that has recently told me she can no longer open the PDFs I send her. I can't find this elusive "Always Send Windows-Friendly Attachments" setting that I have read may solve my problem. Can someone get me there?

    Dear Dan,
    It was from InDesign that I was creating the shared pdfs. I was one of two Mac drivers in a corporate sea of Win users and had to make the change I mentioned in order for the Win users to see my pdfs for review. The difference from what you appear to be doing was that were all on an MS Exchange Server so the files were shared over the company's Exchange Server e-mail system. However, some of these files occasionally went to outside users via regular e-mail and those people had no issues either.
    So what I did was tested and worked for years.
    You might look at the Adobe forums or Knowledge Base to see if that is a reported issue with newer version of CS. I was on CS2 when I was doing this, and the other Mac driver was on CS3 but had no problems either.
    Some Win users I've talked to find a problem opening some pdfs (not mine) in general and found they had to open Reader first and them open the file from Reader's File menu. That most often happened if the client was using an outdated version of Reader.

  • When you create a link to a web page in numbers and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem? Thank yo

    When you create a link to a web page in numbers "Mavericks" and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text (with Cmd-K) in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem?
    Thank you.

    Hi again Raja!
    I did as you recommended and installed HTTPWatch and below is the outcome of that program. It is the exact string with the only exception of obfuscated servernames and portnumbers. The last part that begins with "sap_ep_baseurl=" makes me suspicious, is that part really correct? It looks like it's lacking things.
    Best regards
    Benny
    http://<server:port>/sap/bc/bsp/sap/Z_PURCHASE_REQ/process.htm?
    sap-syscmd=nocookie&sap-client=200&sap-language=sv&style_sheet=
    http%3A%2F%2F<server>%3A<port>%2Firj%2Fportalapps%2F
    com.sap.portal.design.portaldesigndata%2Fthemes%2Fportal%2Fsap_tradeshow%2F
    controls%2Fcontrols_ie6.css%3F7.0.10.0.0&sap-cssversion=7.0.10.0.0&sap-tray-type
    =null&sap-tray-padding=null&sap-accessibility=&sap-ep-version=7.00.200611091758&
    sap_ep_version=7.00.200611091758&sap_ep_baseurl=http%3A%2F%2F
    <server>%3A<port>%2Firj%2Fportal&matnr=9780198603641

  • When I converted a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How can I solve this problem?

    When I tried to convert a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How do I solve this problem?  I don't know how to change it from Read Only.

    Dear Sara
    Thank you very much for sending the converted file.  Yes, I am able to edit it - that will be very useful to me and I appreciate your help.
    Referring to your previous message when you said you'd converted via Acrobat and not Acrobat.com, I'm converting via Acrobat.com because that's the only option that is shown (how do I convert via Acrobat? - perhaps that would be more successful).  I'm using the Export PDF website, and the OCR is enabled to "Recognize text in English UK".  However, I've just tried converting a different LPA pdf form, this time for Health & Welfare https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/245571/LPA114_He alth_welfare_LPA.pdf and again I have the same problem as before.  I've altered it from "Read only" and thought I'd then be able to enter text, but "Drawing Tools" is shown in the pane and I'm unable to enter anything onto the form - everything appears to be in images.  Also, the lettering on the heading of' page 1 has become jumbled, with the word "Public" overlaying the word "Guardian."  Any suggestions as to what it is I'm doing wrong would be welcome - I don't like to be beaten!
    Regards,
    Judith.

  • [SOLVED]Cannot print to PDF files neither from Chromium nor from Firef

    When I open the print dialog and select "Print to file" to print to a PDF file, it works from applications such as gedit, evince, LibreOffice (this one uses a different print dialog, but works anyway), etc. but it is not working when using it from Chromium or from Firefox. Printing to a standard printer from these browsers works.
    When I launch chromium from the terminal and try printing to a PDF file, it outputs this error message in the console:
    [2229:2229:0618/092520:ERROR:print_dialog_gtk.cc(406)] Printing failed: Operation not supported
    When I repeat the process from Firefox, no error message is printed in the console.
    Printing to files was working until recently, I suppose an update broke it. I have Arch installed in 3 different computers (one i686, one x64 and one arm7h), and it is broken in the 3 of them. I'm using XFCE4, and both ghostscript and a2ps are installed.
    Is this a known bug? Can it be solved/workarounded?
    Last edited by doragasu (2013-06-19 06:46:10)

    dag wrote:ya you have to name it for some reason it happens to me too but if i name it it works.
    I didn't believe it until I tried, but you're right! You have to change the default name in the printing dialog and then it works O_oU
    Really weird bug. THANKS!
    Last edited by doragasu (2013-06-19 06:46:35)

  • Hi I have trouble returning a completed PDF form to sender - it looses my filled in info - how do I solve this?

    Hi I have trouble returning a completed PDF form to sender - it looses my filled in info - how do I solve this?

    Are there any dialog boxes popping up behind your Yahoo screen?
    I have intermittent problems attaching files in Yahoo mail and this is usually the reason.  I'm also using an iMac (10.7.3) and this is likely the problem.
    It is generally a Yahoo issue rather than a Mac problem.

Maybe you are looking for

  • Upgrading OS 10.2.8 to 10.4 in a Mirrored Drive Door PowerMac G4

    Hello, I'm trying to upgrade the OS from 10.28. to 1.4 in my Mirrored Drive Door Power Mac G4. All the system requirements are met, the firmware is current, and there should be no problem, but I get a message saying "The system can't be installed in

  • Add helper class public parts as used DC in EJB DC

    Hi Experts, I have created a JAVA DC project containing the helper classes. For this helper classes i have created a Jar file. I have also created two public parts 1) with an option Can be packaged into other build results (e.g. SDAs) 2) with an opti

  • Saved mail not saved

    i sent many messages on 4ht o july. some saved . @mac.com one i sent but isn't in my sent folder got a response/reply. so know i sent it. i cant get info i had on original casue its not there... any reason why messages are not always saving? was ther

  • Monitor not detecting connection after installing TI4200 8X

    Attempting install of GForce4 TI4200-VTD8X (MS-8894). Searched through the manual and says it can support 4x agp but when I put it in the computer the monitor cannot detect a connection to computer but behind the message saying so I can make out acti

  • Clock-in/Clock-out error

    Hi All, I have done backend config for clock-in/clock-out corrections service in r3. Now when i click on this service in portal I am getting the foll error No more storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_