General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion attaching a PDF file into the XML file

  • rekk1986

    attaching a PDF file into the XML file

    Participants 3
    Replies 4
    Last Activity 12 years, 9 months ago

    Hi Derek,
    If i've tried to attack afile pdf into the XML file but it doesn't work. what i should do to view this pdf file in XML?

    Reply

    Derek Read

    Reply to: attaching a PDF file into the XML file

    I assume you are talking about referencing a PDF from an element's attribute, perhaps with something like the following markup:

    XMetaL does natively support most of the common bitmap formats including JPG, BMP, GIF, TIF, PNG, etc (see documentation for longer list) but it does not natively support rendering of PDF.

    However, it is possible to create a customization that embeds an ActiveX control in place of a particular element, so, provided you can find an ActiveX control that is capable of rendering PDF files (there are a few) you can create a customization that will render your PDF inline during editing. The alternative is to install a PDF reader plug-in for Internet Explorer and then embed the ActiveX control version of IE (WebBrowser control) instead.

    The XMetaL Professional Services team can create solutions like this if you are unable to do so yourself for the particular DTD or Schema you are working with.

    Reply

    rekk1986

    Reply to: attaching a PDF file into the XML file

    Thanks for your instructions, but i can't create the DTD or Schema to execute this task,. Derek , do you have any code to do this . Thanks

    Reply

    Derek Read

    Reply to: attaching a PDF file into the XML file

    I cannot provide a DTD or Schema as this is not a trivial decision.

    There are many available designed for authoring various types of content and for various industries. XMetaL Author Enterprise ships configured with a customization that supports authoring to the DITA DTDs. These are the only industry standard DTDs we include a complete customization for (though we do now provide a simple sample DocBook customization for DocBook 5 as well, I would call this a demo and not a true customization). Use of any other schema typically requires some form of customization, and though the product will automatically create a very basic one for any schema you must provide the schema. Customizations can be created using XMetaL Developer, by our Professional Services team, by one of our partners and by various smaller (non-partner) contractors that are familiar with our products.

    Which schema to use is a decision you (or your organization) will need to make and probably one that would be made before you get to the point where you are thinking about customizing XMetaL Author to render referenced PDF files, though this need may guide your decision on which schema to select somewhat, including what you will be doing with your XML once it has been created. In most cases people will be transforming XML to some final format (HTML, XHTML, PDF, CHM, RTF/DOC, etc) and so the tools you will use to transform may also come into play when deciding which DTD you are going to author your content for.

    The approach I would take would be to decide which schema you wish to use based on the type of content you will be authoring (there is a lot of information out there on XML that will help with this). If you are with a specific industry they may even recommend or enforce usage of a particular schema. Then I would decide which tools (including XMetaL Author in the list if you like) will best meet your needs for authoring to this schema.

    Reply

    rekk1986

    Reply to: attaching a PDF file into the XML file

    Oh i'm sorry for my insatiable greed. And Thanks for your information.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support