Printing a pdf document, which is contained in a XString

Hi Experts,
My problem is simple. I'm getting a pdf document from our archive. From the archive-interface I get this document in a XString. This all happens through a Transaction on a windows-client, connected to the SAP-System via SAP-Logon-Pad. Now, I simply want to print this pdf on the local printer of the windows client.
Is there any fm, report, method or whatever to do this from ABAP without any further manual work?
Regards
Torsten

Hi Thomas,
well not really. Currently we're trying a workaround. We are using the windows copy-command -> copy <filename> <printername>. You can use this command via SXPG_COMMAND_EXECUTE if you've customized it in the sm69. But we couldn't use the command directly, but had to wrap it in a batch-file.
The printername can be found in the table TSP03, if the printer is set in the transaction SPAD.
If you want to print the pdf on the presentation-client this way doesn't work, because you can not use the copy command and you don't know the name of the printer. At this point, we have the idea to use a VB-script on the clinet, which does the printing. You can execute this script via the class CL_GUI_FRONTEND_SERVICES . You can also use this class to bring the pdf-files on the client. At least, that's the plan
This is all information as far as I know it. It's at last limited, but all I can say at this moment. I'm still open to recommendations.
Regards
Torsten

Similar Messages

  • Exporting PDF document to Excel.  When I export a PDF document to Excel containing lists of  people the Excel page shows all the names on  one line several inches deep instead of on separate lines which makes editing impossible.  What am I doing wrong?

    Exporting PDF document to Excel.  When I export a PDF document to Excel containing lists of  people the Excel page shows all the names on  one line several inches deep instead of on separate lines which makes editing impossible.  What am I doing wrong?

    Murray is right. Padding (and margins) is added to the width. However, when using percentages, you should never use figures that add up to exactly 100%.
    Browsers need to convert the percentages to pixels. Because pixels must be whole numbers, some percentages are rounded up, which results in the final element dropping down below its neighbours. With percentages, it's much safer to use values that add up to 98% (99% often works, but 98% is safer).

  • When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    Hi screen name,
    Adobe PDF printer gets installed when you install Acrobat 10 Pro.
    To use this printer you need to purchase Acrobat. Once the trial period is over you cannot use the printer to create pdf files.
    An alternative way for you is to utilize Microsoft's own inbuilt pdf engine.
    You can simply open the file and select 'Save as' and in the type list select 'pdf'
    Please refer : http://office.microsoft.com/en-in/excel-help/save-as-pdf-HA010354239.aspx
    Regards,
    Rave

  • Unable to print a pdf document

    I have an HP Officejet 4315 All-in-One Printer and have been unable to print an pdf document.  I have Adobe X installed.
    How can I get the print to work on pdf documents?

    How are you trying to print to pdf?
    Don't go via PostScript or Acrobat Distiller, which are old deprecated technology.
    You use:
    Menu > File > Print > PDF (button bottom left) > Save as PDF…
    Peter

  • How can I print a PDF document?

    How can I print a PDF document?

    That states that the PDF touch app doesnt support printing which is a technically true as it doesnt have a button/option to print from the app but doing a crtl-p (this is on a full PC version of win8 not RT) brings up the print dialogue and its prints fine.

  • Unable to follow links in pdf document which use asynchronous pluggable protocol on Windows unless we disable extended security completely (Reader 11.0.7) - is there any other way round this?

    We have a pdf document which contains links of the format appname://some/path.
    This is using Windows Asynchronous Pluggable Protocols which we have defined in the registry so these links should launch the application with the path as an argument.
    If we disable enhanced security in Reader 11.0.7 then this works - otherwise it just fails to do anything.
    With enhanced security on, we get warning and select trust this site for all pdfs.
    Adobe then stores the first part of the path i.e. for appname://some/path it will store path in [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\11.0\TrustManager\cDefaultLaunchURLPerms].
    Don't get warning after that but the application still doesn't launch if enhanced security is enabled.

    Apologies was mislead - it's not enhanced security which is causing the issue, it is protected mode.

  • "AcroRd32.exe  /t" print a PDF document ( print only, no need to open )

    I'm using the following command to print a PDF document:
    "D:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" /t "D:\R104-20071025165656.pdf" "\\192.168.0.4\hp" "hp LaserJet 1000" "\\192.168.0.4\hp"
    Now it works fine! But I have more request:
    I want a command that only send the file to printer and no need to open the PDF file on local system.
    So anybody can help me?
    Thanks in advance!

    Dear Pedja,
    My program is a desktop application, no a web application. It's not the same as you. And hope the following codes can help you :)
    private void exportReportToPrinter(JasperPrint jasperPrint,int copyNum, String printerName, MediaSizeName mediaSizeName) throws Exception
    // create the print service exporter so that we can print to a named
    // printer
    JRPrintServiceExporter exporter = new JRPrintServiceExporter();
    // set the report to print
    exporter.setParameter(JRPrintServiceExporterParameter.JASPER_PRINT, jasperPrint);
    // tell the exporter to print 1 copy on A4 paper
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(new Copies(copyNum));
    aset.add(mediaSizeName);
    exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, aset);
    // let the exporter know which printer we want to print on
    PrintServiceAttributeSet serviceAttributeSet = new HashPrintServiceAttributeSet();
    serviceAttributeSet.add(new PrinterName(printerName, null));
    exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, serviceAttributeSet);
    // print it
    exporter.exportReport();
    Muiz

  • How to read a pdf document which is saved on icloud

    how to read a pdf document which is saved on icloud

    Greetings jjakri,
    Welcome to the Apple Support Communities!
    It sounds like you have a PDF saved on iCloud Drive and would like to view that on your iPad. To view a PDF on your iPad, you would either need to sync from your computer view it from an email attachment. For more information on these processes, please refer to the attached article. 
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch - Apple Support
    Cheers,
    Joe

  • Printing a PDF document within a postscript file

    I know it is possible to print a PDF document from within a postscript file using Document Structuring Comments and Document Comment Extensions.  Is is possible to print a single page PDF document multiple times as a booklet?  For example I have a PDF document that is a page of graph paper.  I want to print this PDF file 8 times in the form of a booklet.  Is this possible and if it is how would I code the postscript to do this?
    Thank you  in advance
    David

    Where do you know that “it is possible to print a PDF document from withint a PostScript file using Document Structuring Comments and Document Comment Extensions” from?
    PDF is absolutely not part of the PostScript language itself. Nor is there anything in the DSC specifications that provides for printing a PDF document from within a PostScript file.
    Attached to this posting are the two existing pieces of documentation of DSC from Adobe. Neither references such a capability.
    DSC are simply “comments” within a PostScript program file which may be used by preprocessing software or external applications for various puposes, especially associated with prepress actions and placing of EPS (Encapsulated PostScript) in other graphic arts documents.
    Conceivably some implementor of some PostScript product may have provided some capability to embed a PDF file or to invoke the printing of a PDF file from within a PostScript file using custom DSC. However, this is certainly not part of the official PostScript language. I have also attached those specifications as well!
              - Dov

  • Printing a PDF document using SMARTFORMS

    What is the easiest way to print a PDF document from an ABAP program?  I have the data in the following formats:
    Binary (XSTRING)
    String (from function module HR_KR_XSTRING_TO_STRING)
    OTF
    What format can I use in a smartform to print the PDF in the background?
    Thanks in advance.

    Sandipan,
    If I use the UTF format, what do I use for the device type?  PDF1?  Also, I have the OTF data in an internal table which has to fields (TDPRINTCOM and TDPRINTPAR).  I pass this table into the smartform function module but what do I do with the 2 fields when I loop through the internal table in the smartform?  Do I just output a text node with TDPRINTPAR and ignoreTDPRINTCOM?
    TDPRINTCOM   TDPRINTPAR
    ==========    ==========
    //             XHPLJ4       0700 00000000001
    IN            04E/ERPIS/CARRIERLABEL
    IN            05%PAGE1
    OP            DINA4   P 144  240 1683811906000010000100000
    IN            06MAIN
    IN            03TABLE_BEGIN
    MT            0141701657
    CP           41030000E
    FC           COURIER 120  00144 SF012SF012410300144E

  • 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.

  • HP 1300 printer fails to print certain PDF documents with OSX 10.7.5.

    HP 1300 printer fails to print certain PDF documents with OSX 10.7.5.

    I solved this through the phone call help ( which cost me $25 ...) - there was some name colusion in the printer name - the rep basicallt uninstalled everything, did hard resent to all devices - printer, router and Mac, then installed the printer again under new name , seems to solve the problem . 

  • How can I silently print all PDF documents that are opened automatically?

    For a special terminal PC I want to print all PDF's that are opened to be printed automatically and without user interaction. The PDF is loaded in an iFrame in the browser, this PDF then needs to be printed.
    I don't want to modify the PDF's, the PDF's are supplied by another resource.
    I was thinking about using a folder level script that prints each PDF document automatically as soon as it is opened, but I don't know how to accomplish this.

    Macropanther wrote:
    I don't think the installation process will allow that unless the printer is connected.
    Incorrect. Win or Mac, you can install a printer driver w/o the printer being connected.
    I have tried MS PowerPoint (which can't seem to accept paper wider than 56 inches) and have  used NeoOffice Draw
    You're using the wrong tools. PP shouldn't even be in consideration; I don't know about NeoOffice, but I tried its cousin LibreOffice, and it has issues with custom paper sizes; which is not surprising, given what these apps were designed for.
    What you need for actual banners (not web page banners) is a vector drawing tool or a DTP app. I'd say Illustrator or InDesign, but Adobe CS is expensive, and, if you're thinking of PowerPoint for this job, you're not ready for it.
    You can try Pages; although not quite DTP, it can do the job and it's inexpensive. There are other options, such as Swift Publisher (a DTP app) or Intaglio (a drawing app) -- both are more expensive than Pages, but still affordable; or you can go open source with Scribus (DTP) or InkScape (vector; requires X11). You already know the ups and downs of using open source. (These are just examples; you can find others if you look for them.)
    Although it's better to have Kinko's printer driver, to make sure of the correct options, you don't actually need it to print to PDF. You should be able to define a custom page size (eg, 12in × 72in) and create the PDF from it. Any app which uses the Mac OS X standard print function should be able to do it.

  • Radio buttons are always checked when I print a PDF document

    I had an existing PDF file, which I turned into a form with Adobe Acrobat. Everything works fine, except that for the radiobuttons.
    When I fill in the form the radio buttons work as expected. I can also save my completed form afterwards. The problem occurs when I try to print the completed form. All radio buttons are checked when I print out the completed form. It doens't correspond with the checked fields I saved.
    Can someone please help me, because I'm clueless and can't find an answer with Google.

    Pat Willener,
    Many thanks for the helpful suggestions. . Sean Mitchell's suggestion of
    repairing Adobe reader via the help menu did the trick. I have been able to
    print several PDF documents after following his suggestion.
    Very many thanks for the assistance
    Peter Goldsworthy

  • Why can't I print a PDF document?

    when trying to print a PDF document I get the error message " unable to print document".  Sometimes also includes  "No pages  are selected''.
    I'm using an HP laptop and OS Windows 7.
    I have tried selecting all document,and printing it as image,  I have checked that there are no security locks on the document. I have been through the forum several times searching for answers and still I cannot print a PDF.
    Advice please on what other steps I can take.

    Pat Willener,
    Many thanks for the helpful suggestions. . Sean Mitchell's suggestion of
    repairing Adobe reader via the help menu did the trick. I have been able to
    print several PDF documents after following his suggestion.
    Very many thanks for the assistance
    Peter Goldsworthy

Maybe you are looking for

  • Importing a contact folder from external hard drive onto new iphone

    It is kind of a long story...my mom was updating iphone on computer when computer crashed. iphone crashed. had friend move all info from crashed computer onto external hard drive. got new iphone. so, she no longer has a computer and we have to share

  • Can't recall password when connecting 2 Macs via Firewire (Snow Leopard)

    In Leopard I used to be able to connect my iMac and my Macbook to each other with a Firewire cable and share/move large files between them. Since the upgrade to Snow Leopard when I connect the two machines up I'm prompted to enter a password which I

  • App Store badge count shows the wrong number in iOS 8.0.2

    Just updated to iOS 8.0.2 on both my iPhone 5 and iPad Air and the App Store badge app count still shows the number of apps that had updates even though they were updated when syncing with my Mac. When you launch the App Store it quickly shows "Updat

  • Script worked in Abobe 7 & 8; not in 10

    Hi, I have a program that produces hundreds of pdfs with each run.  Each pdf consists of between 10 and 1,000 ps files.  The creation of the ps files is done in a Microsoft Access database.  The database sends individual reports as ps files to a watc

  • Problem in list display of TCODE F.13

    Hi all, Have a look at the below thread Problem with List display for TCODE F.13 Does the same problem exist in your system Let me know. Thanks