Sonia
We just tried this here using PxPlus 18.10 on ubuntu 20 and it worked using the following program:
0010 BEGIN
0020 FOR pdf=1 TO 5
0030 LET f$="test"+STR(pdf)+".pdf"
0040 ERASE f$,ERR=*NEXT
0050 OPEN (1)"*pdf*;file="+f$
0060 FOR p=1 TO 10
0070 PRINT (1)'FILL'(1,TBL(p|3,"Red","Blue","Green")),'RECTANGLE'(@X(MXC(1)-10),@Y(0),@X(MXC(1)),@Y(2)),
0080 FOR n=1 TO 50
0090 PRINT (1)"This is line number ",n," on page ",p," in file ",pdf
0100 NEXT n
0110 PRINT (1)'FF',
0120 NEXT p ! Next page
0130 CLOSE (1)
0140 LET attach$+=SEP+f$
0150 NEXT pdf
0160 LET from$="your.email@example.com"
0170 LET reply$=""
0180 LET to$=from$
0190 LET cc$=""
0200 LET bcc$=""
0210 LET subject$="This is a test of multiple pdfs"
0220 LET attach$=attach$(2)
0230 LET option$=""
0240 LET smtp$="mail.example.com;465-secure;your.email@example.com;your_email_password"
0250 CALL "*web/email",from$,reply$,to$,cc$,bcc$,subject$,message$,attach$,option$,smtp$,0,0,"",0,errmsg$
The items marked in dark red will need to be adjusted to your email address, server and password.
This test program created/sent an email with 5 PDF files with a mix of plain text and graphics. When I received the the email all of the PDF files were correct.
Can you advise what is wrong with the final PDF file on your system? (i.e. What happens when you try to open / look at the final file?)