Skip to main content
Participant
August 23, 2007
Question

A better way to deal with lost hyperlinks when converting Robohelp to Printed doc?

  • August 23, 2007
  • 18 replies
  • 2814 views
I have inherited a 750-page manual that is "single-sourced" in RoboHelp X5. When I generate printed documentation, all of my hyperlinks and converted to plain text. Everytime we release a new version of the manual with any changes, we have to re-generate, and then manually go into the MS-Word converted document and re-create some 350 hyperlinks and page number references. Somebody please tell me that there is a better way to do this, or a better tool to manage single-source documentation.
This topic has been closed for replies.

18 replies

Inspiring
October 5, 2007
I have a very large print document compiling in RH 7. Same RH project. It has been going for 2 hours. It could take awhile longer.

Meanwhile,
Kat,

Are you starting each topic on a new page? If not, have you tried creating the print doc with each topic starting on a new page?

Harvey

Inspiring
October 5, 2007
Peter,

I probably didn't say it clearly.

My tests are all in RH 6. I never got around to testing a huge print doc in RH 7, because I haven't needed it.
Will try it in RH 7 when I have some time.

The .dot template fix was for RH X5.x, which I do not have on my PC. I put it into RH 6, but it had no effect on this problem.

Tidbit, FWIW: My project is 98% tables, but none have any merged cells, I'm certain.

Kat,

Word 2000 is history here. They're getting ready to deploy Office 2007, and I've told my desktop support person Word 2003 must be reinstalled. I'll have both 2003 and 2007 until Adobe makes the upgrade.

H
Peter Grainge
Community Expert
Community Expert
October 5, 2007
I thought TechWriterKat had got it working with RH6 but looking again I see that was with Word 2000. On that basis I would report this problem.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Peter Grainge
Community Expert
Community Expert
October 5, 2007
You said that this problem does not occur in RH6. On that basis I doubt they will fix a bug in an old version.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Inspiring
October 2, 2007
Peter,

The tech note says this fix is for RH X5.xx only.
But I tried it anyway with RH 6. It made no difference.

The key templates for RoboHTML are PrintDoc.dot and Style Mapping.dot.

The latter has no embedded macros, and appears to be unchanged since 9/21/2002.

PrintDoc.dot was updated in March 2005 for the RH X5 fix. It has several macros.
For RH6, the template macros viewer shows a new one was added to update image hyperlinks.

I can't read most of the gobbledygook with a text editor, of course, but my file comparison tool found a lot of changes from 2005 to RH6 in December 2006.
I substituted a fresh copy from the RH X5 fix download for the one installed with RH6. The so-called malformed topic popped up in the same place.

The "malformed topic" apparently is not a project topic. As I watched the output directory, I saw two files building. There is a temp file with a .doc extension that builds for awhile, and RH appends its contents into the intended print output doc. The temp file is deleted, and a new one starts building.

In my test, the output doc gets to about 25 MB when the error occurs. I think it is one of the temp files that gets "malformed."

That's why the message says,

The Word Document became corrupt when attempting to append a malformed topic: 'topicfilename.htm'

It processed 1,300 or so topics before the error. I let it run through the remainder, another 8,000 or so topics, each generating the error. It got to the end, reported that some chapters were not generated, cleaned up the temp files and left behind a Word doc containing the 1,300 topics in 800+ pages. But no TOC and no images

All of this took about half an hour, while I was getting some real work done.

Let's hope RH 7 doesn't have this illness.

Harvey

A footnote: Before my time, this project was compiled every couple of years manually into more than a dozen subdocuments merged into a Word master document. It was unwieldy, and you couldn't find any small details because there was no Index, just a table of contents.

That's why we switched to an app that generates HTML files from massive databases, with a hyperlink from every significant term to its parent topic, and fed it into RH to get a coherent directory structure, TOC and Search function.

So why am I trying to generate a printed doc now? Because I can't do it, I guess.
TechWriterKat2
Inspiring
October 4, 2007
Harvey,

The symptoms I have are very similar, except the document doesn't fail in the same place everytime. I DO get a TOC and an index, and the TOC obviously doesn't include all of the chapters, it goes from the failed file to the Index and Glossary. The document always stops building chapters anywhere from page 475 to page 525, and then builds the index and glossary, then cleans up and finishes. Have you tested yours with MS Word 2000? It's not really an acceptable fix, but I'm curious.

Thanks,

--Kat

P.S. Does anybody think this is worth posting to Adobe as a bug and seeing if they can fix ir, or am I asking for finger-pointing between Adobe and Microsoft?
Peter Grainge
Community Expert
Community Expert
October 1, 2007
Interesting thought from wgmeisheid. I think the template being used is the same one in all cases. Follow the link below and you will find templates for different versions of Word. Could be worth a try.

http://kb.adobe.com/selfservice/viewContent.do?externalId=4cf80b20&sliceId=1

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Known Participant
October 1, 2007
I do not think the problem is Word 2003 itself, but the RH template for 2003. It sounds like the macro process in the template is running out of memory, which can happen when there is not a proper memory refresh in really long processes, which I have run into with my own complex macros. That is why you can do half and half but not the whole document.

Since the template is locked, it can only be fixed by Adobe.
Peter Grainge
Community Expert
Community Expert
September 30, 2007
I don't think any Microsoft or Word specialist forum will help as this issue is simply to do with the conversion from RH to Word, an aspect foreign to those forums. There are some people who only follow HATT on Yahoo Groups so you could try there.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Inspiring
September 21, 2007
Kat,

Looking back over this thread, I was reminded you're using RH X5. I'm using RH 6, so all I can do is guess based on my experience with X5. Sorry.

Here's a flash of an idea:

Do you have the MS Word Autosave feature turned on, as I do? Does the print generator run for approximately the same number of minutes? Monday I'll try turning it off in Word before starting a new print doc.

Interesting that your output works OK with each half, but not the whole project. Makes you wonder about the "malformed topic" message, which I am also getting. And maybe they finish before reaching the Autosave trigger.

It could be a spurious message, meaning that something happened that made the print generator "think" it was malformed. We both have been able to get past the supposedly malformed topics by changing the size of the output.

In my case, I removed a buch of TOC topics, even a whole book or two, near the top of the TOC (print version, not WebHelp TOC). So the topics were still present, but not included in the output. RH 6 breezed right past the point where it had stopped on two previous runs, only to crash again, after about the same amount of time.

Have you tried reducing the size of the output by omitting topics ahead of the crash point?

Factors that make no difference in RH 6:
--Using the style mapping .dot, or letting RH pick up styles from the topics.
--Preserving hyperlinks or not. (Without hyperlinks, I got more pages, but it broke at about 25 MB in the Word doc, which has been fairly consistent.)

Good luck.

Harvey
TechWriterKat2
Inspiring
September 29, 2007
Hi Harvey and everyone,

It looks like WORD 2003 is the culprit, though what to do about it, I don't know. I finally got a machine running XP with MSWord 2000, and the demo copy of RH6. It produced the entire document with no malformed topic messages, and no distorted images. Some of my list numbering was off, but that is a farily easy fix.
So, is anyone else out there using RH5 or 6 with WORD 2003 and a big document successfully? I wonder if there's a Microsoft forum out there that would address this, but I'm guessing not.
Inspiring
September 20, 2007
Kat,

I'd say memory usage is not the problem.

Can you put your finger on just how much was accomplished before the crash? Is it consistent from one crash to the next? Is it during pagination? Are you including a TOC, Glossary or Index?

Another process to watch is in the !SSL! folder where the Word doc is building.

Normally, in Windows Explorer while RH is running, you should see a printname.doc and a temp folder. Open the temp folder and you should see the directory of project folders, each containing its topic list. You'll also see a bunch of project source files.

A number of temp chapter files appear, named $HtmlDoc_Chapter_abcdefsoiuy.htm,
where abcdefsoiuy is a folder or file at the root directory level.

A printname.trs file contains a running list of processed topics.

The temp folder stays as long as the RH completion dialog remains on the screen, until you click "View Result" or "Done." Then Poof! the temp file is gone. (Maybe this is why it's called the !SSL! folder?)

Right-click and open the .trs file with Notepad or similar text editor. Scroll to the end. What's there?
I was able to open the file before the process completed, but RH output failed at that, which is to be expected. So wait until the end.

On the other hand, when it failed, the printname.doc was just under 25 MB. So maybe that's the limit in Word 2003? Maybe this version of word stuffs the file with a lot of MS Office code that bloats the output? How big is the successful output on the other machine?

Harvey


TechWriterKat2
Inspiring
September 21, 2007
Harvey,

Thank you for continuing to work with me to try to solve this problem!

I'll try to answer your questions in the order you asked them:

About 503 pages were processed in the last crash, and then it processed the index (leaving off the last few chapters). It seems to happen in the same chapter each time, but on different pages -- sometimes it's processed close to 600 pages before it quits, does the index and goes into "view or Done" mode.

I am including a TOC and an Index

I looked at the .trs file, and the last thing listed was a graphic in Appendix A, which occurs several pages AFTER the place where the document crashed, so I don't know what to make of that.

The final document was 3,426 KB. On the slower computer running MS Word 2000, it was 6,268 KB.

I'm still waiting for the new computer running Word2000 to see if that fixes the problem. In the meantime, does the information I provided give you any more clues?

Thanks again,

--Kat
Inspiring
September 19, 2007
I agree. I'd go for system or application software problems. However, a lot of programs get tangled up in unexpected "memory leaks" that have a solution in their source code.

It doesn't cost anything to turn on the Task Manager.

Harvey

TechWriterKat2
Inspiring
September 20, 2007
OK, I just ran it with Task Manager running, and I looked at the graph as it ran. I didn't see anything that clued me in, but maybe I just don't know what to look for. There were LOTs of spikes on the graphs and the numbers did their thing, but it didn't look like anything reached its limit. When the doc finished generating the graphs spiked low, but when MS-Word started paginating the tome, the graphs spiked up again. At the most, CPU used was 60% at any given time, dropping down to 50% the rest of the time with PF (page file?) usage peaking at around 672 MB. The document IS laden with complex images, but the place where it crashed didn't have any of those. Perhaps one of you can clue me in what to look for and/or tell me what would be the next step if we do determine that it's a resource problem. It will be very interesting if it works with Word 2000, but would that mean it's Microsoft's fault, (my boss loves to blame them), and if so, how do we fix it? Sorry if this raised more questions than it answered.