Printout a PDF document

Hi together,
perhaps anybody have an idea: I need to print out pdf documents within SAP. The PDF files are attached to the order document and are stored in the archive.
I know that it give professional solutions to print different document formats. But I think it must give a function module (or different function modules) which can read the PDF from SAP archive and print it on a PostScript Printer.
Any idea? Thank for your help.
Regards Thomas

Hi Thomas,
i make an download as PDF and start Acrobat wit /P /H.
Here a code example:
Download the file as C:\TEST.PDF.
  DATA: PROGRAM(128) TYPE C.
Path of PDF
  CALL FUNCTION 'SO_PROGNAME_GET_WITH_PATH'
       EXPORTING
            DOCTYPE           = 'PDF'
       IMPORTING
            PATHNAME          = PROGRAM
       EXCEPTIONS
            PATH_NOT_FOUND    = 1
            PROGRAM_NOT_FOUND = 2
            NO_BATCH          = 3
            X_ERROR           = 4
            OTHERS            = 5.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
<b>                COMMANDLINE        = '/p /h C:\TEST.PDF'</b>                PROGRAM            = PROGRAM
           EXCEPTIONS
                FRONTEND_ERROR     = 1
                NO_BATCH           = 2
                PROG_NOT_FOUND     = 3
                ILLEGAL_OPTION     = 4
                GUI_REFUSE_EXECUTE = 5
                OTHERS             = 6.
Hope it helps.
Regards, Dieter

Similar Messages

  • Weird and Strange Printout of some PDF documents in Windows 7

    Greetings! I am facing problem when I print some of the pdf documents in my new laptop with Windows 7. Yes, only some pdf documents. The printout of the words becomes strange and weird. I have attached here for your reference.
    But if I print these documents in my desktop pc with Windows 7, they are printed nicely.
    I am now using Acrobat Reader X. I had tried to uninstall it and install the previous version 9, but still same problem.
    Can someone help me? Please...... Thank you in advance.
    P/S: The printout below is from an english article.

    Hmmm.. Seems interesting...
    can you try this:
    select the printer-> Advanced-> and select Level 2.
    If it doesn't work you can upload the document here so i can give it a shot... am just curious to check.. (Only if it is not confidential).
    ~SandeepV.

  • PDF document looks different in Adobe Reader 8.1.2 than in Acrobat Standard 6.0.6

    When I saved a PDF document in Acrobat Standard 6.0.6 and later opened it using Adobe Reader 8.1.2 it has stray characters (or rather little rectangles taking up the space of one text character) in different places on the page.
    Opening the same document again in Acrobat verifies the document still looks like the original, but opening it again in Adobe Reader shows the stray characters or boxes.
    What is causing the two programs to render the same document differently on the screen and in printouts?

    I mean open first PDF file by mouse double click, then double click another PDF file, both are opened in 2 separate windows.

  • Printout a pdf file in a specific printer.

    Hi experts,
    I am facing the following problem: I have a PDF file that i want to print without using a user interface to do it. I created a database table where I store the name of the PDF file that I need to print, the type is BDS_FILENA. Now at a certain hour I want to send the PDF file to be printed in a specific printer installed in the network. The idea is to create the code that sends out the files only by giving the file name.
    I already have the PDF file uploaded in the system (is not a local file I want to print).
    I know that using the FM GET_PRINT_PARAMETERS I am able to config whether the IMMEDIATELY, NO_DIALOG, DEVICE (printer name), etc.
    My question is, by calling this FM it will send the spool defined in the DATA_SET parameter to the printer??? how can I add the document to the spool (I am assuming that the DATA_SET is the spool where the documents are ready to be printed... Am I right?) By calling this FM, automatically will start the print due to I have defined the IMMEDIATELY parameter as 'X' right or do I have to call another FM to start the printing?
    I have check these forums: [Thread 1|http://www.sapfans.com/forums/viewtopic.php?f=13&t=23697&start=0&st=0&sk=t&sd=a], [Thread 2|Re: Query: Single Spool request to print multiple smart forms] but I am not too sure about if it is what I need.
    Can you please guide me a little bit about it?
    In advance, thanks a lot for your comments or observations.
    Cheers,
    Mauricio.-

    Hi again,
    Ok, I have read about the RSPO_*_SPOOLREQUEST FM, but in non of them I figure out what is the FM that I need to call to send the spool to the printer...
    RSPO_OPEN_... will return the spool number. that spool number I will need to pass as SPOOL_REQUEST_ID parameter in the RSPO_OUTPUT_SPOOL_REQUEST right?
    I understood that I will have to convert the PDF into a spool, i don't know yet how to do it... but it is something that seems to be easy, but the printer side I cannot understand. Using those calls I am able to convert the PDF from hte XSTRING type to a spool. but after the conversion, how do I send to document to the printer?? I don't need to download it to a local computer, i just need to printout the PDF or the data inside the PDF with all the layout (Title, headers, footers, etc.)
    In advance, thanks again.

  • HP M1536 PCL XL error or inverted PDF document

    Hello,
    We're having some trouble with an m1536dnf All-In-One printer one of our clients recently acquired. The printer itself is connected to the network via ethernet cable and the computers that are printing to it either via cable or wireless. They are all using either Windows Vista or Windows 7. 
    They all seem to print just fine, with the exception of some PDF documents from some of their clients. These documents either do not print and we get a printout of a PCL XL error (when trying to print from Adobe Reader) or do print, but with black background and white text (Foxit Reader).
    The PCL XL error is:
    PCL XL Error
    Subsystem: KERNEL
    Error: ExtraData
    File Name: kerlib.c
    Line Number: 9024
    Things we've already tried:
    - updating both Adobe Reader and Foxit Reader
    - updating printer driver (unfortunately there is only one version available: http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4062&lc=en&cc=us&dlc=en&sw_lang=&product=3974... )
    - updating printer firmware
    - reinstalling
    - installing via USB or printer sharing
    - saw a page ( http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c00064499 ) describing our issue but could not find a way to switch to a PCL 5 driver
    - using the Generic driver found here: http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=4157320&...
    - installed on a PC with Windows XP
    It seemed at some point that a solution was to switch the printing resolution from 600 dpi to 1200 FastRes (both with EconoMode activated). However, after doing this another document showed up with the same problem. It may not seem like a serious issue to some, but with a bunch of users who have only basic knowledge about using computers issues like this can grow into big problems.
    We also have little information about the PDF documents and their source, but as far as I could figure out at least most of them are generated by scanning from other multifunction printers. 
    We also took the printer back to our supplier and explained the issue. We could also demonstrate with a PDF file but could not leave the file with them due to privacy issues. They tried printing with the Generic driver but with no joy as the issue kept manifesting. If we send it to warranty they will most probably print a number of documents and say it's working OK (I would do the same in their position ), this is why I was wondering if any of the people here are experiencing the same issue with this printer or have any ideas on how to solve it.
    Thank you in advance,
    Eugen Sechel.
    This question was solved.
    View Solution.

    Right click on the Printer icon - In Control Panel
    Go to Printing Preferences.
    Go to Advanced Tab.
    Then under Printer Features, go to Print Data Optimization and select it to “Optimise for Text and Vector”.
    Then click on OK.
    Then try to print any Document and it will print fine without any PCL xxxx error.

  • Pdf document not sized properly when print is intiated from Outlook Quick Print

    I have some pdf documents that print properly (fit on printed page) when the PDF is being viewed within Adobe Reader X (10.1.4) and I initiate printing from right within Adobe Reader. However, when the same PDF is printed via Outlook's "Quick Print (with the job being routed to Adobe Reader but not initiated by Adobe Reader), the resulting PDF printout is slightly shifted and sized incorrectly.
    Any ideas as what the problem might be? We're trying to set things up so that PDFs sent to a special Outlook email address are automatically printed without user intervention.
    Thank you.

    I believe the PDF you are trying to print is "larger than A4 in size". When we explicity open Reader and print the pdf doc then it scales down the pdf page size but when you print directly from outlook then it prints as per the original size of the document.

  • CV01N - Attached PDF document printing through programmatically

    Hi all
    My requirement is to print PDF document which is attached through CV01N transaction programmatically. I searched all the ways. Still I didn't get it.
    Kindly help me to achive PDF document printout programmatically.
    Thanks in advance.
    Thanks and regards
    Selva

    Hi Selva,
                  What kind of document it is? SMARTFORM , ADOBEFORM? If any of them is true there is a FM associated with each of them hence you can use that do print these. You can pass you own print parameters in the interface of these forms.
    Second option check in which table the attachment get's stored get the same in binary format, and convert it into PDF, using some standard FM, Check SCMS* in SE37 that will help.
    Best Regards,
    Tapodipta Khan.

  • Set Document Restrictions to generated PDF Documents

    Hi,
    does anyone know, how to set PDF Document Restrictions (like Printing, Copying...) to the PDF Documents generated by BEx Broadcaster? Thank you for advices.
    Erik

    Hello PAHU,
    Thanks for coming to my aid again.
    Some of the things I'm scanning are records that need to be good as photocopies because I will have to email them or copy-or-print and snail mail them.
    That's interesting about how the PDF file is made. I thought PDF would be a native format and chose it for "compatibility". I'm not sure if everyone have apps that can handle TIFFs (especially on the PC side). My recollection from scanning in the 90s with my Paperport is that TIFFs can print "huge" or "teeny" depending on the settings it was scanned at.
    Using your advice scanning with Preview set to B&W as TIFF and PDF and both times the files were smaller. Thank you so much.
    I also tried converting the TIFF to PDF in Graphic converter because I can batch convert documents that way. However, I noticed that the printouts of the B&W scans are rather poor quality. On the other hand the B&W scans print out as the whole page and not with a white border like the color scans do.
    The B&W pdfs scan slightly smaller than the TIFFs. So that's probably what I will do for these documents.
    I will have to search out /experiment with the OCR for things that I can save as text when I get a chance.
    I have so much to learn about scanning.

  • Printing of pdf document from java application

    Hello,
    I want to print out a pdf document which I get from a server as a byte-stream. I don't want to display or preview it on the client but print it out right away. Is there a way to do this?
    Thank you very much!
    Matthias

    Hi Matthias,
    If you have got solution for this can u suggest me.
    I'm using following code
              PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
              DocFlavor flavor = javax.print.DocFlavor.INPUT_STREAM.AUTOSENSE;
              System.out.println("====================>"+flavor);
              PrintService printService[] = PrintServiceLookup.lookupPrintServices(flavor, pras);
              PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
              PrintService service = ServiceUI.printDialog(null, 200, 200,printService, defaultService, flavor, pras);
              if (service != null)
                   try
                        javax.print.attribute.standard.Copies obj=new javax.print.attribute.standard.Copies(1);
                        Attribute at=(Attribute)pras.get(obj.getClass());
                        int noOfCopies=1;
                        if(at!=null){
                             try{
                                  noOfCopies=Integer.parseInt(at.toString());
                             }catch(Exception err){noOfCopies=1;}
                        for(int i=0;i<noOfCopies;i++)
                             URL url = null;
                             try{
                                  url = new URL(urlToPDF);
                                  url.openConnection();
                                  fis = url.openStream();
                             }catch(Exception err){}
                             DocPrintJob job = service.createPrintJob();
                             job.addPrintJobListener(printjoblis);
                             DocAttributeSet das = new HashDocAttributeSet();
                             Doc doc = new SimpleDoc(fis, flavor, null);
                             pras.add(Sides.ONE_SIDED);
                             job.print(doc, pras);
                   }catch(Exception err){System.out.println("=========>"+err);}
    some times i'm getting garbage values in the printout.
    Thanks & Regards,
    Surya.

  • Embedding pdf documents in HTML

    Hi everyone,
    I am working on a project where I need to embed some previously created pdf files into a web page. I am using object method and seems to be working in general, but having some issues while printing.
    First issue: In Firefox and IE, the embedded pdf object is not printing. There is a blank area where the document needs to be. I am thinking it's an Adobe Reader plug-in issue. Is there a setting that disables printing that object? In Chrome, the printing is complete- guessing Chrome has its own pdf viewer plugin.
    Second issue: Part of my project is to be able to add two or three lines of text as a header to these pdf documents. When I embed this pdf object, I am trying to scale down, so that there is room to add that header. But the scaling affects the quality of the printout. Do you have any recommendations on how to add header to the embedded pdf in HTML?
    Thank you,
    G

    yes, you just need to bundle your classes in a .jar
    file, and there is like an <embed> tag or something
    that lets you tell the html which class has the
    main() method, and it runs it fine. I did it a while
    a go so i know you can do it.
    Thanx a lot.. I know it is a stupid question but i have never worked with .jar files before can u tell me how to put my classes in one?

  • Preview whites out margins when printing PDF document to HP 2610

    I am attempting to print a PDF document from Preview to my HP 2610 printer.
    I am finding that there appears to be a "default margin" in which no text may be printed.
    Let's say I have the word "apple" relatively near the left edge of a paper - what I see on the print-out is "pple".
    The document looks fine in preview; however in the print dialogue box I can see that the miniature image has the image clipped. If I click "shrink to fit page" then the document is collapsed into the area within the margin.
    I don't want a margin - I want the document printed as-is. How does one fix this in preview? I am guessing that if I ponied up the money for adobe acrobat this would not be a problem.
    -Russ

    See if this helps...
    Type a percentage in the Scale box. (If you want to enlarge the printout, type a value
    greater than 100. To reduce the printout, type a value less than 100. Then, be sure to Tab out of the Scale field after you enter the new value, or it will not stick.
    -mj

  • What is involved in removing an image from a PDF document and inserting a new one?

    Our form producing process is very typical:
    (1) Start with a TIFF image, create a fresh PDF document.
    (2) By adding items such as links and interactive fields, convert the read-only document into an interactive form.
    Step (2) may take a lot of work, but fortunately when modifications are needed, it is always possible to edit the individual items. No need to redo the whole form from scratch.
    There are some cases, however, in which we have invested a substantial amount of work in Step (2), but we need to modify the underlying image, removing it and replacing it with a new one. We obviously don't want to destroy all the work done in (2).
    I envision the procedure as taking a rug from underneath a person and putting a new one.
    What is involved in doing that? Can that be done at the JavaScript level? Are there commercial packages that can do that? Is the Acrobart SDK required?
    -Ramon

    Document->Replace Pages
    Been in Acrobat since at least version 5.

  • A pdf document created in cs5 cannot be printed in duplex on a pc without cs5 or adobe reader pro

    Hi!
    there is a "normal" cs5 created pdf document.
    the installed cs5  pc -> i can print in duplex on every printer, without cs5 installed duplex printing not possible.
    I am searching for a solution to print the pdf document in duplex mode on every printer, but only with the latest freeware version adobe xi 11.0.3.
    (If i install adobe cs4 on a pc it is possible to print the document in duplex mode on a hp3525 printer, but duplex is not possible on a ricoh printer for example mpc5502.)
    I cant upload the file, because its bigger than 2 mb. (5mb)
    Is there anybody out there for help.
    If you need the file, i´ll send 2 u.
    thx

    Yep, it definitely is a complicated workflow... But I'm not really sure of any other way to get from the 34" wide pattern to the home-sewing version which is split into pages and has alignment marks and whatnot. I'm very much an amateur that has figured it out as I went
    I went through the page in the photo pretty thoroughly with the layer panel and I couldn't find any mystery lines... But I did find something interesting; when I click on any of the pattern lines, it shows the whole line of the pattern piece, which extends well past the edge of the artboard. So when I'm printing the poster-sized PDF to 7.5x10 pages, it's keeping all the anchor points of a line even if only a small piece of that is on the actual page.
    Does this help? I've included the page in the photo as well http://www.putlocker.com/file/DADB4759DBB860D8
    Thanks again to everyone!
    Also, should I be keeping all the files I'm editing as .ai files and then only exporting to PDF for the very final product? I was doing that at first, but then using .pdf for the whole process didn't seem to make any difference.

  • Error message 'not a valid PDF document'

    Hi folks,
    my Z10 has trouble opening some PDF documents sent as email attachment. When I try to open them the error message appears:
    Important message
    The document cannot be opened because it is not a valid PDF document
    There is no BES10 Service involved in my environment. Mails are synced with with active sync.
    OS Version: 10.2.0.429
    Any suggestion appreciated.
    Best regards,
    RAUMPATROUILLE

    Stuffit is the only app I know of which can decompress its own format. Your Windows clients must use the free Expander to open them. Otherwise, use OS X's built in zip compression and they'll be able to open the files without the need of third party software. Right click on any item, or group of items and choose, "Compress xxx Items" (how it will read if more than one item is chosen).

  • Error while exporting to PDF document in OBIEE 11g

    Hi
    In OBIEE 11g we are facing an issue regarding exporting a few reports to pdf. It is resulting in following error: "Error generating PDF document".
    The reports are placed on a dashboard which has a prompt too. However, when we remove the prompts, the export is working fine.
    We will really appreciate any help in this regard.
    Thanks.

    Hi,
    Looks like this is a sort of known bug with PDF creator in 11g. Try implementing the below solution:
    To configure the Javahost service, edit the Javahost service configuration parameters in the
    instanceconfig.xml file. The parameters are
    identified by their relative path starting from the /WebConfig/ServerInstance node
    For example:
    <JavaHost>
    <PDF>
    <InputStreamLimitInKB>50000</InputStreamLimitInKB>
    </PDF>
    </JavaHost>
    After changes restart Siebel Analytics Java Host and Siebel Analytics Web services
    If it doesn't work try to create same report in xml publisher as presentations services in obiee has limited capacities in printing out reports.
    Refer to this thread for related useful information: Error in creating a PDF
    Hope it helps.
    Thanks,
    -Amith.

Maybe you are looking for

  • Newbie Setting up a Wireless Network - Advice Needed

    Before I run out and drop $$$ on stuff that won't work for me, I thought I'd better get some advice. Here goes: I have an older 1.25 GHz G4 iMac running OS X 10.5.1, no airport card installed yet, a Lacie 500 GB external HD, an Epson R200 printer and

  • Touch screen failure

    I bought my Xperia z3 in December in Orlando but I live in Brazil.  And when I came back I detected a failure on a lane of my touch screen. I already contacted the Brazilian technical support but they can do nothing because the warranty is not intern

  • How do I change system settings so that users are not required to enter the mac's admin pw in order to join a wifi network?

    how do I change system settings so that users are not required to enter the mac's admin pw in order to join a wifi network? Right now my macbook pro requires an admin password before connecting to a new wifi network. In other words when a user that i

  • Canon S100 and Camera RAW 6.6

    I upgraded from Photoshop Elements 9 to Elements 10 for the Canon S100 RAW compatability. I installed the Elements 10 and then updated the Camera RAW to 6.6 from the Help Menu. When I try to open a file folder with a S100 RAW CR2 file I get the follo

  • Invoice Adobe form.

    Hi All I have worked on Invoice Smartform but this time I am going to create an Invoice form in Adobe. So there in Smartform I have used the standard structures(Output_options,Control_parameters) like while calling the form in Smartform for Invoice.