rainpro?

Using (or providing) components based on the "Win32" framework

rainpro?

Postby askom on Sat Jul 10, 2010 3:32 pm

1. In versions 12 and 12.1 there is no function ToPDF, but it is mentioned in help:
View PG ⍝
OK
'test.ps' ToPDF PG ⍝ Save on file for Acrobat distiller
VALUE ERROR
'test.ps'ToPDF PG ⍝ Save on file for Acrobat distiller

2. Function PostScrp.Write, but doesn't work:
'D:\RAIN.PS' PostScrp.Write PG ⍝ Write direct to PS device
DOMAIN ERROR
psput[19] txt ⎕NAPPEND fh ⋄ ⎕NUNTIE fh ⋄ r←1

'D:\RAIN.EPS' PostScrp.Write PG ⍝ Write direct to PS device
DOMAIN ERROR
psput[19] txt ⎕NAPPEND fh ⋄ ⎕NUNTIE fh ⋄ r←1


Any way to write rainpro plots to a file? Thanks.

/Sahsa
askom
 
Posts: 36
Joined: Fri Apr 09, 2010 7:22 pm

Re: rainpro?

Postby Vince|Dyalog on Mon Jul 12, 2010 12:42 pm

Hi Sasha,

I shall ask Adrian Smith (the author of RainPro) about ToPDF.

The DOMAIN ERROR occurs as the default writing type of ⎕NAPPEND is 80.
For compatibility, you can call ⎕NAPPEND with 82, telling it to convert txt on output to type 82.

⎕DR txt
160
txt ⎕NAPPEND fh 80
DOMAIN ERROR
txt ⎕NAPPEND fh 80

Compatibility conversion:
txt ⎕NAPPEND fh 82

Regards,

Vince
Vince|Dyalog
 
Posts: 413
Joined: Wed Oct 01, 2008 9:39 am

Re: rainpro?

Postby askom on Thu Jul 15, 2010 10:47 pm

Vince,

Thanks a lot. It works well for me.
You saved me a day. It is general saying.
YOU saved ME at least a MONTH!

Please, do not forget about function ToPDF.

/Sasha.
askom
 
Posts: 36
Joined: Fri Apr 09, 2010 7:22 pm

Re: rainpro?

Postby Vince|Dyalog on Mon Jul 19, 2010 1:57 pm

Hello Sasha,

Adrian Smith's function ToPDF is a simple cover function, which basically is:

Code: Select all
fi ToPDF page
⍝ The trailing 1 gives colour support (required)
PostScrp.POSTSCRP page fi 1

Regards,

Vince
Vince|Dyalog
 
Posts: 413
Joined: Wed Oct 01, 2008 9:39 am

Re: rainpro?

Postby askom on Mon Jul 19, 2010 6:35 pm

Hi Vince,

Thanks. It works (with your advice on 82 code), but for only 50%.
Create a file, which can't be viewed:-(

Does it work for you?

Regards,
Sasha.
askom
 
Posts: 36
Joined: Fri Apr 09, 2010 7:22 pm

Re: rainpro?

Postby Vince|Dyalog on Tue Jul 20, 2010 10:22 am

Hi Sasha,

The ToPDF command creates a postscript file which can then be passed to Distiller, as the comment in the Help indicates.

You could use a postscript viewer such as GSView to view the postscript file. You could also try out the various Postscript to PDF converters that are available on the net.

Regards,

Vince
Vince|Dyalog
 
Posts: 413
Joined: Wed Oct 01, 2008 9:39 am

Re: rainpro?

Postby Vince|Dyalog on Tue Jul 20, 2010 11:38 am

Hi Sasha,

I shall email you a new copy of the NewLeaf workspace. With this, I was able to create PDF files like this:

)copy newleaf pdf
C:\Program Files\Dyalog\Dyalog APL 12.1 Unicode\ws\newleaf saved Tue Jul 20 11:59:23 2010

Cloud ⍝ 3D scatter using straws and balls
View PG
'c:\tmp\scatter1.pdf' pdf.PS PG
9967 bytes written to file c:\tmp\scatter1.pdf

Regards,

Vince
Vince|Dyalog
 
Posts: 413
Joined: Wed Oct 01, 2008 9:39 am

Re: rainpro?

Postby Vince|Dyalog on Mon Oct 31, 2011 1:34 pm

Hi Sasha,

Just to let you know, these domain errors from RainPro have been fixed with the latest version of RainPro which is now available on tools.dyalog.com.

Regards,

Vince
Vince|Dyalog
 
Posts: 413
Joined: Wed Oct 01, 2008 9:39 am

Re: rainpro?

Postby askom on Mon Nov 07, 2011 6:23 pm

Vince,

Thanks a lot. I downloaded it and played a bit. There are a number of improvements,
but it still doesn't like Cyrillic:-(

/Sasha.
askom
 
Posts: 36
Joined: Fri Apr 09, 2010 7:22 pm


Return to Windows: GUI, COM/OLE/ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest