cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

APP-E ArborText Print Publisher - Enterprise

jroberts-2
2-Explorer

APP-E ArborText Print Publisher - Enterprise

Having trouble with .html files on www displaying the same in all browsers whereby our text has leading non-breaking spaces for indention and lines are justified within a table. I recall ibm mainframe we could tap into a sysprint product whereby we intercept a document sent to the printer and we ran a conversion to handle bolding (repeated text on a new line), underscoring (underscore character on a new line), and striken text (dash on a new line). Since 3b2's .html output option doesn't match the .pdf, is there any mechanism within 3b2's or .pdf to capture and save an exact formatted-output to a file and then we can further interrogate that file to use <pre> tags or the like?

8 REPLIES 8

Let me get this right, you want to print to HTML and have it look exactly like the PDF? Or you're just saying that the built-in HTML print driver isn't doing a very good job for your pages?

Latest versions of APP have an XML print driver and JavaScript print driver for which you could then implement your own HTML output transformation. Thinking laterally, an alternative would be to print to PDF then run a PDF-to-HTML tool such as IDR.

we utilize 3b2 to generate .pdf's for our website and are very satisfied. Additionally, we use 3b2's .xml output with embedded processing instructions that control page and line breaks as input into our custom xslt transformation process for displaying .html files on the website (this method was necessary since 3b2's .html output has never matched the .pdf output).

Ideally, we would like to print .html from 3b2 and have it exactly match its .pdf output with hope that every web browser would render the .html the same. Discovering that our custom html transformation was originally designed to render correctly in IE, but now finding other web browsers are not honoring indention/justification (use of non-breaking spaces).

Using Adobe Acrobat XI 'File/Save as Other/html web page' ignores our page and line numbering along with other subtle differences like indents/fonts - so this is not reliable for our shop.

Thanks for tips on APP xml print driver and JavaScript - will give them a look.

I'm still not sure exactly what you're trying to achieve, but if it is simply correcting the display of preformatted text runs then the HTML <pre> tag is what you're looking for.

You can also augment the HTML driver output with generated content or tags using <?passthru> and conditional functions using it (or FOM equivalent depending on your version).

Bespoke/custom html outputs are cirtainly possible with the XML or JS print drivers as Garath mentioned but are not simple 'out of the box' solutions.

On a similar track to the PDF to HTML option, Acrobat version 10, PDF to DOCX / HTML options are much better than older versions.

Regards
Chris

Thanks Chris - with differences in various web browsers displaying our .html files we are investigating alternatives - will see what PDF to html offers us.

I had hoped that we could tap into 3b2's formatted output prior to saving as .pdf, and simply slap a <pre> tag around it.

APP-Enterprise is just running a formatting & print process like any other template under the hood so no reason why you cant add a post HTML print prosess (perl/Javascript) to patch the file as you need (as long as your acs.ini allows time in its timeout settings). Or use <?passthru> in the right place on the first pass could augment these tags potentially which works with the HTML and XML print drivers. 

From you comments above however i am assuming your not already using the xml print driver but instead saving out your own source XML datastream which has been augmented with the PI's by 3b2? In which case would this not then be some extension to the augmentation process thats already running before the XML is saved out and/or to the XSLT transform?

we are not using the xml print driver, rather we are using a perl process within a 3b2 script to save an .xml file with our embedded Processing Instructions, and then running a 3b2 script that utilizes the tprintx macro to save a .pdf file. This .xml file is then used as input for our custom xlst transformation into an .html file.

I used the <?passthru> which appears to be the equivalent of File/Print and the best output was the SVG print driver option - but unfortunately it renders a file for each page. I tried all the other options, and the xml print driver file might have potential as a post custom html transformation process to replace the above?

I noticed a similar issue to ours documented in PTC support. Just wondering if this is doable given that we only have the APP-D and APP-E products? I still believe that we can capture the formatted output as a text file, edit it by slapping a beginning/ending <pre> tag and save with .html extension - since my pages/frames are displaying the desired format?

Document-CS115847

Date Created: 2-15-13

Date Last Updated: 8-20-14

Title: Incorrect HTML output using File-> Save As HTML in Arbortext Editor

Resolution: Recommend using Styler stylesheet (uses on XSLT);

Recommend using Compose-> HTML file instead of Save as HTML

Announcements

Top Tags