Skip to main content
1-Visitor
June 28, 2013
Question

Graphics display in Styler output but not in PE output

  • June 28, 2013
  • 10 replies
  • 2057 views

Hi All!



I'm a newbie here and fairly new to the dark underbelly of structured authoring. I've been using Editor/PE/CPA for almost 5 years and have been working with the e-learning modules for several months. All of which leads to:



I've been working on a custom doctype for a supplement publication management wants. Everything is great so far except for one thing. Graphics in a document display properly on output using Styler's print preview and compose buttons, but not when using Editor's print preview and compose features. Our PE installation lives on a server with our CPA installation.



All graphics live in a folder at the same directory level as their associated document file. We're running Editor/PE 5.4 M030.



Thanks for any help!!

    10 replies

    June 28, 2013
    Do you have composers initialized in your DCF file? Are you getting any kind of error back from PE when you compose?
    RoyGamble1-VisitorAuthor
    1-Visitor
    June 28, 2013

    No errors coming back from PE. In the instance I'm working on the graphic is inside a <figure> tag, and PE sees that and marks the title with the autogenned "Fig. 1".



    DCF file has compose set up for pdf and html, no config file.

    16-Pearl
    June 28, 2013
    It sounds like there could be a mismatch between the Styler and PE versions of the customisation. Have you tried running the job on PE Interactive to see if the graphics work in that case too?

    Gareth Oakes
    Chief Architect, GPSL
    RoyGamble1-VisitorAuthor
    1-Visitor
    July 1, 2013

    Hi Gareth,



    I have the same problem trying to print preview or compose using PE interactive. I built the custom doctype on my computer and then installed into the custom folder of the PTC directory on the server that houses PE. So the stylesheets should be identical.



    If I open a test document in Styler, I can click the print preview or compose button in the Styler dialog and the output is correct. If I print preview or compose the same document using the buttons in Editor, the illustration does not show up in the output.



    I was looking through a document instance that uses a PTC created doctype (we use CPA). In that document instance under Entities > Notations, the various graphic types are listed (tiff, eps, etc.). The DTD column is checked in this document instance. It is not in my custom doctype ( obviously I haven't coded the DTD for this). Could this be the problem? Does PE need to have these "notations" of graphic types declared in the DTD to properly "see" them?



    I hope the above wasn't too convoluted of a question!



    Roy Gamble

    RoyGamble1-VisitorAuthor
    1-Visitor
    July 1, 2013

    Perhaps I coded the graphic declaration incorrectly in the DTD. My DTD declarations are as follows:






    RoyGamble1-VisitorAuthor
    1-Visitor
    July 3, 2013

    I was wrong earlier: there is an error when previewing/composing. It's as follows:



    Error: The graphics file C:\Program Files (x86)\Apache Software
    Foundation\Tomcat 6.0\temp\activeTransactions\rq_33672\source\Graphics\SKYLink
    Electrical Power Panel.tif could not be opened. (page 4)



    Not sure why PE is looking for this graphic in the Tomcat directory. Thanks for any ideas!



    Roy Gamble

    16-Pearl
    July 3, 2013
    The transaction folder is used for storage of all input files during server side processing. Otherwise how does PE locate the images.

    BTW I like Paul's suggestion!

    -Gareth

    Roy Gamble <rgamble@arinc.com> wrote:



    I was wrong earlier: there is an error when previewing/composing. It's as follows:



    Error: The graphics file C:\Program Files (x86)\Apache Software
    Foundation\Tomcat 6.0\temp\activeTransactions\rq_33672\source\Graphics\SKYLink
    Electrical Power Panel.tif could not be opened. (page 4)



    Not sure why PE is looking for this graphic in the Tomcat directory. Thanks for any ideas!



    Roy Gamble

    -----End Original Message-----
    RoyGamble1-VisitorAuthor
    1-Visitor
    July 10, 2013

    Okay, so the problem seems to be that PE isn't able to "see" the graphics files. In our setup document files and their associated graphics live on one of the network drives.



    If I have a document (custom doctype) and it's associated graphics in one directory (folder), PE "sees" the graphics and output is correct.



    If I have a document in one directory (folder) and it's associated graphics in a sub-directory (folder), PE apparently is not able to "see" the graphics. Doesn't PE automatically look in any subfolders in the same directory as the document for graphics? I guess not.



    I need to create an instance.acl file to stick in the custom directory to force PE to look in the subdirectory. I guess "append_graphics_path". Not sure how the syntax should go . Will continue wrestling with it!!



    Roy

    1-Visitor
    July 10, 2013
    I don't know about PE, but the last place that Editor/Print Composer looks for graphics is the folder containing the XML/SGML file which references the graphic. This is regardless of the graphics path or value of the APTGRPATH environment variable.