ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Convert Spool File to PDF

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Re: Convert Spool File to PDF

    Here is anoter version of the convert to pdf
    It belongs to Giuseppe Costagliola 2005 - beppecosta@yahoo.it
    it supports multiple fonts and multiple page widths...
    way cool!

    2 things to remember compile the physical file CPYSPOOL in library QGPL or
    change the hardcoding....

    and also compile it with multiple members *NOMAX...


    see attached
    Attached Files
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #47
      Re: Convert Spool File to PDF

      Greetings everyone.

      I just found CVT2CMD today, and I decided to try and test it out. I was able to get everything to compile and it all looks great.

      I ran CVT2CMD FROMFILE(QPJOBLOG) TOSTMF(TEST.PDF) TODIR('hyperion') TOFMT(*PDF) STMFOPT(*REPLACE) TITLE(*STMFILE)

      'Hyperion' is a netshare on my iSeries (I can get there via mapping a drive). It shows up fine as /hyperion/TEST.PDF but when I try to view it using Adobe Acrobat reader 7.0.0, I get an error:

      "There was an error opening this document. There was a problem reading this document (110)."

      I tried copying the file down to my PC (with and without iSeries Nav) and still got the same error.

      Any ideas/thoughts? I am at V5R2M0, up to CUMe...

      Comment


      • #48
        Re: Convert Spool File to PDF

        THe default to the command is *TEXT you must change to *PDF before conversion


        Sorry didnt read the whole post
        download this much better tool



        Welcome

        Jamie
        Attached Files
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment


        • #49
          Re: Convert Spool File to PDF

          Hello,

          I'm somewhat of a newbie to RPG but I wanted to try this conversion program. As a first step, I copied the HTML convert RPG program into an RPG source file on our server and attempted to compile it, and get all kinds of errors.

          Do I need to have theCLLE and CMD progams in place first?

          If I can get some help from someone, that would be great. Here are some of the sample comile errors:

          * * * * * E N D O F C R O S S R E F E R E N C E * * * * *
          5722WDS V5R3M0 030905 IBM RPG/400 KNRLIB/CVT2HTML
          M e s s a g e S u m m a r y
          * QRG2001 Severity: 30 Number: 117
          Message . . . . : Form-Type entry invalid or out of sequence.
          Specification ignored.
          * QRG2003 Severity: 20 Number: 2
          Message . . . . : The File-Type entry is not I, O, U, or C.
          * QRG2006 Severity: 20 Number: 2
          Message . . . . : The File-Format entry is not F or E. Defaults
          to F.
          * QRG2010 Severity: 10 Number: 2
          Message . . . . : The Extension-Code entry is invalid.
          * QRG2013 Severity: 10 Number: 2
          Message . . . . : The Device-Type entry is not PRINTER, DISK,
          WORKSTN, SPECIAL, or SEQ.

          Thanks

          - Kevin

          Comment


          • #50
            Re: Convert Spool File to PDF

            First error is telling you column 6 isn't correct. Either your program isn't formatted correctly, or you are trying to compile with the wrong compiler (or both)

            Comment


            • #51
              Re: Convert Spool File to PDF

              hi kevin

              RPG is column driven and when you copied the source into your member you miss
              aligned it. everything starts in column 6.

              The best way to get this into your system is to use opperations navagator
              and cpyfrmpcd or cpyfrmstmf or cpyfrmimpf

              let me know i how I can help further
              Jamie
              All my answers were extracted from the "Big Dummy's Guide to the As400"
              and I take no responsibility for any of them.

              www.code400.com

              Comment


              • #52
                Re: Convert Spool File to PDF

                He is using the the right compiler because of the error message numbers. I wonder if there is some comments that didn't get shifted or converted.
                Never trust a dog to watch your food.

                Comment


                • #53
                  Re: Convert Spool File to PDF

                  What version of OS are you on....I can send you a savf and walk you thru getting that onto your system Nevermind ur on V5R3

                  I have attached the savefile

                  just let me know
                  Jamie
                  Attached Files
                  All my answers were extracted from the "Big Dummy's Guide to the As400"
                  and I take no responsibility for any of them.

                  www.code400.com

                  Comment


                  • #54
                    Re: Convert Spool File to PDF

                    Yes, We are on V5R3.

                    I use Navigator Jamie; yes I'll need a walk thru on this.

                    Thanks for your help.

                    Comment


                    • #55
                      Re: Convert Spool File to PDF

                      Okay kevin I like naviagator cause its easy.....send me a phone number
                      and I walk you thru...DONT post the number send me a private message


                      Create a folder on the IFS (QDLS) for ease please

                      CRTFLR FLR(KEVIN) AUT(*ALL)


                      then from ops navigator
                      click on the ip to the sytem you have created the folder on
                      then click on file systems
                      next Intergrated file systems
                      then QDLS

                      you should see folder kevin here.

                      Just open the zipfile and drop the text files on desktop.

                      Then just copy them and place then in the kevin folder

                      now on the greescreen type
                      CPYFRMPCD FROMFLR(KEVIN) TOFILE(KEVINLIB/QRPGLESRC) FROMDOC(CVT2CMD.TXT) TOMBR(CV2CMD)

                      changing the to member and from doc for each file.







                      Jamie
                      All my answers were extracted from the "Big Dummy's Guide to the As400"
                      and I take no responsibility for any of them.

                      www.code400.com

                      Comment


                      • #56
                        Re: Convert Spool File to PDF

                        I have installed this tool on a V4R5 system and have automated a lot of our report production and distribution.

                        However, many of the reports now are oriented to landscape, rather than portrait, in the produced PDF's. Anyone know of a fix for this??

                        Any input is appreciated. Thanks

                        Comment


                        • #57
                          Re: Convert Spool File to PDF

                          First welcome to code400......

                          Then I guess secondly why is the page orientation a problem.
                          I guess I dont have many 80 column reports areound here so I just dont pay
                          attention. I will give a try.


                          Please start a new thread this one is way too long
                          I need a nap


                          Jamie
                          All my answers were extracted from the "Big Dummy's Guide to the As400"
                          and I take no responsibility for any of them.

                          www.code400.com

                          Comment


                          • #58
                            Re: Convert Spool File to PDF

                            Thanks for the reply, Jamie. It's appreciated.

                            The page orientation served as a problem because it botched some of our automated processes at other levels when we would give them the landscape PDF's.

                            I have since worked on refining these other processes to work regardless of orientation & formatting, so it is no longer a problem.

                            Thanks!

                            Comment


                            • #59
                              Re: Convert Spool File to PDF

                              After compiling using the cvt2pdf I do get a pdf document in my IFS folder but every pdf I create generates an access denied error when I try to open it in adobe reader?

                              Comment


                              • #60
                                Re: Convert Spool File to PDF

                                post one of em here so we can take a look........

                                you are using the command cvt2cmd then selecting type *PDF first ...correct???

                                Jamie
                                All my answers were extracted from the "Big Dummy's Guide to the As400"
                                and I take no responsibility for any of them.

                                www.code400.com

                                Comment

                                Working...
                                X