🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.postscript.programming
5 messages
5 total messages Started by Heide Tue, 11 May 2004 15:47
Problem using c++ to make a document two up
#599
Author: Heide
Date: Tue, 11 May 2004 15:47
26 lines
1733 bytes
My process in brief:
I have code that generates a .ps from a MS Word document. That .ps file can be input to a c++ dll that will transform it into two up. Much like this perl script will <http://www.cs.indiana.edu/docproject/programming/postscript/nup.html>

Everything was working fine until I recently upgraded postscript print drivers. Code that produced distillable two up .ps files continues to generate .ps files. Unfortunately, the resulting file no longer distills. The distiller reports an "invalid restore".

The odd part is when I remove the last gsave, grestore and restore the file *will* distill. I am uncomfortable removing the restore as it was part of the original .ps file.

I am a total newcomer to .ps so any help is appeciated. Where did I go wrong?

Thanks,
Heide

Software versions
Windows XP profressional
MS Office 2003
Adobe 4.0 (same thing happens under Adobe 6.0)
Adobe Print Driver 1.06

TwoUp.dll:
 <http://www.zcan.net/heide/MagicTwoUp.cpp>

Before TwoUp.dll file:
 <http://www.zcan.net/heide/InputTwoUp.ps>

After TwoUp.dll file:
 <http://www.zcan.net/heide/OutputTwoUp.ps>
Problem using c++ to make a document two up
#600
Author: Aandi_Inston
Date: Tue, 11 May 2004 15:54
4 lines
847 bytes
As a newcomer to PS, I am impressed if you were able to make a
document 2-up at all. In outline, what were you doing?  

Aandi Inston
Re: Problem using c++ to make a document two up
#601
Author: Heide
Date: Tue, 11 May 2004 16:36
3 lines
822 bytes
Apart from the perl code itself, the first link is a good summation of what's necessary to rotate and place pages side by side.

Did I misunderstand your question?
Problem using c++ to make a document two up
#602
Author: Aandi_Inston
Date: Tue, 11 May 2004 16:46
5 lines
942 bytes
I see the document fails to mention that the PostScript must be DSC
compliant or it will all fail. Perhaps that is the problem, since most
PS drivers are not DSC compliant by default.

Aandi Inston
Re: Problem using c++ to make a document two up
#603
Author: Heide
Date: Tue, 11 May 2004 17:22
6 lines
846 bytes
Oops! I just realized my second .ps file isn't correct - I'll take them both down until I can get back to the office and upload the correct ones.

Thank you for the DSC hint, I'll look into it.

Thanks again,
Heide
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads