Forum Replies Created

  • s. anderson

    Reply To: RenderX only generates PDF with sans font family

    Participants 0
    Replies 7
    Last Activity 8 years, 10 months ago

    I gave up on RenderX and am now compiling with apache fop.

    Once I did that, all my problems magically disappeared! My xrefs were coming out right. My doc was properly formatted, and the fonts were all correct. It looks lovely.

    I'm pretty sure this is a bug. I didn't touch the config files, so it was impossible that it was something I did.

    I've reported the bug to XMetal, btw.

    Reply

    s. anderson

    Reply To: How to include an image in a pdf header

    Participants 0
    Replies 7
    Last Activity 8 years, 10 months ago

    After looking at the xsl files, it looks like the default header should show the product name and the page number. This isn't happening. I've eliminated all customizations and the doc has no header (it never had a header).

    I think something must be broken in my installation.

    Reply

    s. anderson

    Reply To: How to include an image in a pdf header

    Participants 0
    Replies 7
    Last Activity 8 years, 10 months ago

    If you want to add an image, you'll need to do it in the static-content.xsl. As for why your changes are not taking effect, you might want to look at the stage3.xml file in the temp directory. There you can see all the fo objects that are applied to your text. Perhaps your changes are being applied, but are being overridden by another attribute set.

    I did it in custom.xsl because the XMetal doc specifically says to modify that doc rather than the other xsl files. In fact, the attribute where the background image is added is in static-content.xsl, but the override is located in custom.xsl, and it gets picked up perfectly well. If I make an error in custom.xsl, then the entire thing goes south. So I know custom.xsl is being read and used.

    I tried checking for Stage3.xml, and there was none. I have stage1.xml, but stage3.fo. Maybe this is the issue?

    Reply

    s. anderson

    Reply To: How to include an image in a pdf header

    Participants 0
    Replies 7
    Last Activity 8 years, 10 months ago

    My recommendation is to get Leigh White's book Dita for Print. She has an example to do exactly that and it works perfectly. It's an excellent book well worth the $ and time investment.

    Given that I need to do this sooner rather than later, and that you apparently know that this actually works, can you by any chance tell me how to do this?

    Thanks

    Reply

    s. anderson

    Reply To: How to include an image in a pdf header

    Participants 0
    Replies 7
    Last Activity 8 years, 10 months ago

    I am (see my original post for what I'm using).

    I know that that file is being used because I made a change on the title page to use a background image, and that took.  I also purposely made an error (as you suggested), and the generation failed.

    It's just the header and footer modifications that don't seem to be taking.

    Reply

    s. anderson

    Reply To: How to include an image in a pdf header

    Participants 0
    Replies 7
    Last Activity 8 years, 10 months ago

    Let me try this again:

    Anytime I make a change to the header or footer — even using the code in the XMetal doc — it doesn't affect my pdf output.

    I'm modifying AppDataRoamingSoftQuadXMetaL SharedDITA_OTpluginsxmfoCustomizationfoattrscustom.xsl just like the doc (almost) says (I say “almost” because the v8 doc is out-of-date and still refers to the deprecated demo directory).

    So if I try:



    right
    10pt
    10pt
    italic


    bold
    red
    normal

    It does nothing. The page number does not render in red. Nothing is in italics. Which makes me wonder what I am doing wrong.

    I don't think a book will help with this, IMHO.

    Thanks

    Reply

    s. anderson

    Reply To: How to include an image in a pdf header

    Participants 0
    Replies 7
    Last Activity 8 years, 10 months ago

    Thanks.

    Reply

    s. anderson

    Reply To: How to include an image in a pdf header

    Participants 0
    Replies 7
    Last Activity 8 years, 10 months ago

    Hi Severin,

    The reason I'm posting this is because I haven't found an answer online. I've been working on this for upward three hours, trying out fo code, and I've decided that instead of continuing, I'd just ask if anyone knew how to do this.

    Thanks
    Sandra

    Reply

Products
Downloads
Support