Hello again.
Thank you for the info. I'm not sure on the PCL format file specs. If I know the detail of it, I or somebody else might be able to propose something.
As to the word.doc, I do not see yet very well the big picture of your files. In any case, I can provide you with a script for Eliminating All Empty Paragraphs (hence, a special kind of empty lines) in your word documents.
The script below functions as follows.
[1] Use highlight-copy-paste to paste it to a plain text file. Name the file to, say,:
ShrinkEmptyParagaphs.vbs
(Extension .vbs is a rigid requirement.)
[2] Put it in any folder you like.
[3] In explorer, use mouse key to drag the icon of one of your .doc word document you want to eliminate empty lines and drop the icon on top of the file ShrinkEmptyParagraphs.vbs.
[4] By doing so, a new file will be created in your original doc folder with the new of that doc file only with a underscore in front as prefix. The output file is having the desired effect.
Use some trial doc file and see the effect of it.
regards - tsuji
'----------ShrinkEmptyParagraphs.vbs----/tsuji/---
Option Explicit
Const prefix = "_"
Dim oArgs, filename, newfilename, pos, i
Set oArgs = WScript.Arguments
If oArgs.Count = 0 Then
WScript.Echo "This script requires a drag-and-drop arguments." & vbCrLf & _
"No argument is present. Operation is aborted."
Set oArgs = Nothing
WScript.Quit(1)
End If
For i =0 to oArgs.Count - 1
filename = oArgs.Item(i)
If Mid(filename, len(filename)-3, len(filename)) <> ".doc" Then
WScript.Echo "This argument must be a <.doc>MS Word document." & _
vbCrLf & "Operation is aborted."
Set oArgs = Nothing
WScript.Quit(2)
End If
pos = InStrRev(filename, "\"

newfilename = Mid(filename, 1, pos) & prefix & Mid(filename, pos + 1, len(filename))
call MergeEmptyParagraphs(filename, newfilename)
Next
WScript.Quit
Sub MergeEmptyParagraphs(strFile, strFileSaveAs)
Dim app
Set app = CreateObject("Word.Application"

app.Visible=False
app.Documents.Open(strFile)
app.Selection.WholeStory
app.Selection.Find.ClearFormatting
app.Selection.Find.Replacement.ClearFormatting
With app.Selection.Find
.Text = "^p"
.Replacement.Text = "XXX&YYY&ZZZ^p"
.Forward = True
.Wrap = False
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
app.Selection.Find.Execute , , , , , , , , , , 2
With app.Selection.Find
.Text = "^pXXX&YYY&ZZZ"
.Replacement.Text = ""
End With
app.Selection.Find.Execute , , , , , , , , , , 2
With app.Selection.Find
.Text = "XXX&YYY&ZZZ"
.Replacement.Text = ""
End With
app.Selection.Find.Execute , , , , , , , , , , 2
app.Documents(1).SaveAs strFileSaveAs
app.Documents.Close
app.Quit
Set app = Nothing
End Sub
'----------ShrinkEmptyParagraphs.vbs----/tsuji/---