ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Converting Spool to PDF using CPYSPLF

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Converting Spool to PDF using CPYSPLF

    So I'm using a cpysplf to convert a spool file to PDF and putting it on the IFS. It works fine EXCEPT I do not get the page breaks etc. I need this to work so I can post to an online document management system.
    Anyone have some ideas?

    CPYSPLF FILE(QSYSPRT) TOFILE(*TOSTMF) SPLNBR(*LAST) +
    CTLCHAR(*FCFC) TOSTMF('/RON/TEST_1.PDF') +
    WSCST(*PDF) STMFOPT(*REPLACE)

  • #2
    Pretty sure you don't need CTLCHAR(*FCFC). That may be what's messing it up.

    Cheers,

    Emmanuel

    Comment


    • #3
      Nope. I did that just to check to see if that was it. Still does not work right

      Comment


      • #4
        Originally posted by CaptainRon View Post
        Nope. I did that just to check to see if that was it. Still does not work right
        Are you sure that the original actually has page throws to line 1 as opposed to simply using spacing? I have used this feature a lot and the page breaks are always preserved. Maybe do a copy to database with the *FCFC option and then look at the values in the first two characters and check them here http://www-01.ibm.com/support/docvie...d=nas8N1019389

        For sure when you actually do the conversion do NOT use *FCFC. That will really screw things up.

        Comment

        Working...
        X