Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Per E. Johannessen

Pages: 1 2 [3] 4 5 ... 11
Utilities / Re: Insert text on pdf's
« on: June 05, 2019, 10:15:27 pm »
At this stage I didn't think about pdf versions at all, but in any case the pdf's I produce are only meant for our auditor and "IRS", plus internal use.
I assume that they use "latest everything" under Windows and so far they have not complained about pdf 1.4. (Latest pdf version is now at 1.7 I think.)

The number "1" which was added to lower right corner was my mistake. Created the pdf in OO and I think it automatically added page numbering.
Have done several tests with "new" pdfs and no numbers are added.

Utilities / Re: Insert text on pdf's
« on: June 04, 2019, 11:01:22 pm »
Thanks, I already have ghostscript, did some more searching and found;

My infile test.pdf contains only one line with the word "test.pdf"
(No need to, but I changed "Sample" to "AddedText" and saved it as


gsos2 -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=out.pdf -f test.pdf

and it produced the attached out.pdf

So, it looks like this can be done without conversion.

Just noticed that it also added the number "1" in the lower right corner. Guess this can be controlled
by the ps-file, font, size, where to place text etc.

Utilities / Insert text on pdf's
« on: June 03, 2019, 04:04:31 pm »
I need to insert text, actually the filename of the pdf, to lots of pdf's.
Does anyone know about a "OS/2-utilty" that can do this, preferably in batch mode?
(Attached a sample, 12345.pdf)

Programming / Re: Rexx Socket / SMTP
« on: May 14, 2019, 08:03:19 pm »
Just an update;  a kind soul has provided code that works using REXXCURL.

Programming / Re: Rexx Socket / SMTP
« on: May 07, 2019, 12:53:10 pm »
Thanks David, I tried various port settings and the following works:

Channel definition Outgoing: Server port 465 and Local port 7587

Account settings SEND: Port 587
If I leave "Allow non-secure" unchecked I get a warning; There is no secure Authentication method available for the SEND server.
When checked there is no warning. In both cases it sends the e-mail.

The option "Use secure channel (SSL) is grayed out, so stlll something is wrong.

Programming / Re: Rexx Socket / SMTP
« on: May 06, 2019, 09:49:43 pm »
Have found various "rexx-sendmail-programs" but none of them can be used since they don't support SSL.

Tried PMMail, which receives mail ok, but unable to send. It has lots of configuration options so most likely
I have not set it up right, (so can't use PMMSEND for now).
(Smtp configuration in Seamonkey is easy and works fine.)

Some more searching lead me to:

Seems like rexxcurl supports SSL and is the right tool.

Programming / Re: Rexx Socket / SMTP
« on: May 04, 2019, 01:02:42 am »
I've found another example written in REXX: John Small's ReleaseTool.cmd of FM/2. See the fm2/trunk source directory. It's much shorter than RexxMail.cmd, but regarding emails, it's only able to send them.

Logged in but still I get "no permission" when I try to read the file.

Programming / Re: Rexx Socket / SMTP
« on: May 04, 2019, 12:59:16 am »
Found somewhere a link to rxhelo.cmd, but unfortunately the link was not available anymore.

Have you tried that link on ? Maybe the target of that link is saved there.

It took me to an "archive-site" but got msg that it was unavailable

Programming / Re: Rexx Socket / SMTP
« on: May 03, 2019, 08:32:42 pm »
For now I think I'll go for the PMMSEND utility.

Still, I'd like to learn how do it with RxSock.

"RXHELO which utilises RXSOCK is a good starting point"

Is RXHELO a library?
Or do you mean RXHELO as a term for the connection/authentication commands between the client and the smtp server?

Found somewhere a link to rxhelo.cmd, but unfortunately the link was not available anymore.

Programming / Rexx Socket / SMTP
« on: May 03, 2019, 04:07:06 pm »

I'd like to automate sending e-mails with a file attached from an application I've created with VX-Rexx.  Since I have no experience using Rexx Sockets I'd appreciate help/ sample of how to:
Initialize sockets
Log-in to smtp server
Attach file
Send message

Programming / Re: Rexx function changestr
« on: April 04, 2019, 11:16:36 pm »
Anyone knows which DLL contains CHANGESTR ?

(By the way, the reason I need this "search/replace" routine is that DBExpert has trouble calculating numbers in forms on systems where locale configuration for decimal symbol is a comma.)

Programming / Re: Rexx function changestr
« on: April 04, 2019, 09:23:26 pm »
Thank you Andreas,

In the meantime I've tried the function "translate" and it works as needed.

I'm using the Classic REXX that comes with ArcaOS and took for granted that I had the latest DLL's.
(All the rexx dll's installed are dated 06.09.2000.)

Programming / Rexx function changestr
« on: April 04, 2019, 06:26:12 pm »
AFAIK the function "changestr" is not implemented in classic REXX, but seems to be supported by Object REXX.
Does anyone know about a library with this function for classic REXX, or a "workaround" to easily achieve what "changestr" does?

CHANGESTR(needle, haystack, newneedle)

This function was added by the ANSI-1996 standard. It replaces all occurrences of string needle in string haystack with string newneedle. Returns the haystack if needle is not found.

Examples --

changestr(‘x’,’abcx’,’d’) == abcd
changestr(‘x’,’abcc’,’d’) == abcc        /* needle was not found in haystack */

Applications / Re: Simple CUPS Support Printer Quesion
« on: November 07, 2018, 12:54:51 am »
Just FYI; for my HP M477fdw I use a postscript driver that was supplied with ArcaOS and printing works fine.
(Not at my system right now, but I believe the driver is HP Color Laser Jet 3800 PS.)

Internet / Re: Couldn't resolve host
« on: May 06, 2018, 08:27:51 pm »
No fixed IP, using DHCP.

Pages: 1 2 [3] 4 5 ... 11