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.

Similar Messages

  • How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    You can prevent it from being printed by applying a security policy to it
    in Acrobat. The rest can't be prevented, unless you spend  a LOT of money
    on DRM protection.

  • When i send a PDF file to out side print, some of the things I aded dose not print. Is there a way I can "close" the PDF when i finish the work- so' every thing will be printed for sure

    when i send a PDF file to out side print, some of the things I aded dose not print.
    Is there a way I can "close" the PDF when i finish the work- so' every thing will be printed for sure

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

  • The scan's to PDF file can not be printed

    Hello,
    Im have an Mac running on Mac Os X 10.7.3
    I bought a HP officejet PRO 8500 A910.
    The printer is installed and works fine if a want to print a document or a picture. The scanner also works.
    BUT there is a problem.
    When I scan a document in my HP scanner to a PDF file. This PDF file can not be printed. When I send it to other people's computer, the can also read it on screen, but not print.
    The printer gives an error :  Unable to covert PostScript file. (see screenshot).
    Can anyone help me? I want to scan usable PDF documents that can be printed by anyone.
    Thank you.
    Erik 
    This question was solved.
    View Solution.

    The solution given was to convert to image. Then it is no longer a PDF! The printer worked fine until I upgraded to 10.9. Did the change in drivers eliminate the PPD? I can print PDF's from Preview just fine. Will HP be updating the driver to include the proper PPD?  As an aid to troubleshooting, what files should be present in the Library for correct PDF printing? This is happening on both my 8500 and 8610.
    Thanks

  • Can't print .pdf files on windows network printer

    Hi,
    I cannot print .pdf files on Canon IRC printer with UFR II 2.23 or 2.24 drivers connected through a windows network by LDP protocol, either with Apple Preview or Acrobat Reader - looks like the software doesn't find the printer (I have the rainbow whell and the software does not answer). It can last for hours, there is no other solution than forcing the soft to quit and finding another way to print. I have updated Canon drivers from 2.23 to 2.24 (all supposed to work with Lion) and that does not fix the problem.
    This problem does not happen with Ms Word or Safari (or, more generally, other types of files) and it worked fine with Snow Leo even with pdf!! I also have windows XP with Parallels and guess what? I can print through Parallels with Acrobat Reader (for windows XP) on the same printer on which I cannot print with my Mac with Lion and Preview or Acrobat Reader for Mac!
    Please help !!
    Alexis

    Correction
    It works with Acrobat but the printer does not like queues of documents...
    The site privided me with the topics I fas looking for about this : it's a Canon drivers and Lion permissions problem.

  • Open PDF file to a specific page

    I need to have an HTML link open a PDF file at a specific page. Are there any commands that can be added to the HTML link that the Reader can use to do this specific action? I have many name index files where the names are linked to the spcific page. I currently have all pages as individual JPG files. I want to combine all these JPG files as a single PDF file. But how do I access those individual pages? Thanks.

    THANK YOU !! The article states that the described method does not work using local hard drive destinations. I neglected to mention that using local hard drive destinations is exactly what I need. But the article also states this applies to Reader 7.0. I am using 8.1.2 so I decided to try it and see what happens. The method does indeed work in 8.1.2 !! Again, THANK YOU !!

  • Print PDF file directly to store printer

    Hi Gurus,
    Having not found a solution, we think we need help from you. We have searched forums and google but have not found adequate solutions.
    We are a retailer having different stores. Our main office is using SAP. Each store has its printer and defined in our SAP system. We want to print PDF files directly to store printer using SAP . How should we do that ? We think there are 2 steps:
    1) Upload PDF files from network directory into SAP (We done it, no problem)
    2) Having now PDF files in internal tables, how should we proceed to print PDF files using store printers?
         Please note that we do not want to use CL_GUI_PDFVIEWER since we do not want to display the PDF and having the obligation to choose the print option from dialog and also we do not want to call Adobe OLE object  to print
    Any answer would be appreciated
    Thank you very much

    Hi,
    It is really late to give response this post. But still who ever refering to this post for the same issue this solution is useful for achieving same in background:
    Even same can be used in smartforms, for getting spool request in PDF format as well which will decrease the size of file when printing in SAP printer.
    ct_tline is PDF output:
    DATA: lv_pdfsource TYPE xstring.
    FIELD-SYMBOLS:<p> TYPE x. " <p> type any.
    LOOP AT ct_tline INTO cs_tline.
      ASSIGN cs_tline TO <p> CASTING TYPE x.
      CONCATENATE lv_pdfsource <p> INTO lv_pdfsource IN BYTE MODE.
    ENDLOOP.
    * ->Create spool request in PDF format
    CALL FUNCTION 'ADS_CREATE_PDF_SPOOLJOB'
      EXPORTING
        printer  = 'LOCL'            "Printer name supporting PDF device type
    *   DEST     =
        pages    = 1
        pdf_data = lv_pdfsource        "XSTRING internal table
    *   NAME     =
    *   SUFFIX1  =
    *   SUFFIX2  =
    *   COPIES   =
    *   PRIO     =
        IMMEDIATE_PRINT         = 'X'
    *   AUTO_DELETE             =
    *   TITLELINE               =
    *   RECEIVER =
    *   DIVISION =
    *   AUTHORITY               =
    *   LIFETIME = '0'
    * IMPORTING
    *   SPOOLID  =
    * EXCEPTIONS
    *   NO_DATA  = 1
    *   NOT_PDF  = 2
    *   WRONG_DEVTYPE           = 3
    *   OPERATION_FAILED        = 4
    *   CANNOT_WRITE_FILE       = 5
    *   DEVICE_MISSING          = 6
    *   NO_SUCH_DEVICE          = 7
    *   OTHERS   = 8
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.

  • Avoiding the 'Save PDF File As' dialog when printing to the adobe PDF printer from a service

    Hello, can someone please help.
    I have Adobe Acrobat 8 Pro installed.
    I have an in house application which (among many other things) effectively monitors a directory and prints the file to the default printer. It works fine when run as an application.
    I have set the defaults on the Adobe PDF printer to put the output PDF file into a directory and not to open it so it works silently without prompts.
    When I run my application as a service, it brings up the 'Save PDF File As' dialog and I would like to avoid this. My impression is that if I put the right registry key in then it will work.
    I do not want to do any scripting if I can avoid it.
    Thanks for all constructive help given.

    Thank for your help Bill, but changing settings in the distiller did not seem to work. As my application prints directly to the default application without using anything specific to Acrobat, I was hoping there was a simple way forward. A colleague suggested copying registry entries from the account I logged on as to the S-1-5-18 entry, then rebooting. This had no effect as the prompt still comes up.
    Aandi, I don't have the Acrobat SDK or any experience of it.
    Also I'm not sure where any code/script would sit since the application is stable and so I would rather not change it.
    If it amounts to a few lines of javascript sitting outside the application then that would be of interest.

  • How to  print pdf file by using java print API ? I am trying with this code

    import java.io.FileInputStream;
    import java.io.InputStream;
    import javax.print.Doc;
    import javax.print.DocFlavor;
    import javax.print.DocPrintJob;
    import javax.print.PrintException;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.SimpleDoc;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.print.attribute.standard.Copies;
    import javax.print.attribute.standard.MediaSizeName;
    public class PDFPrint {
    static public void print(InputStream inputStream, PrintService printService) throws PrintException {
    Doc doc = new SimpleDoc(inputStream, DocFlavor.INPUT_STREAM.AUTOSENSE, null);
    PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet();
    attributes.add(MediaSizeName.ISO_A4);
    attributes.add(new Copies(1));
    print(doc, attributes, printService);
    }//print()
    static public void print(Doc doc, PrintRequestAttributeSet attributes, PrintService printService) throws PrintException {
    if (printService == null) {
    printService = PrintServiceLookup.lookupDefaultPrintService();
    System.out.println("The Printer Name is :"+printService.getName());
    DocPrintJob docPrintJob = printService.createPrintJob();
    System.out.println("Before Print Start()");
    docPrintJob.print(doc, attributes);
    }//print()
    public static void main(String args[])
    PrintService defaultPrintService = PrintServiceLookup.lookupDefaultPrintService();
    String file="c:/BackUp/file.pdf";
    FileInputStream fis=new FileInputStream(file);
    System.out.println("Before Print() called ..");
    print(fis,defaultPrintService);
    System.out.println("After Printing....");
    I am using this code to print pdf file. But when I try this one automatically the printer starting with print ascii codes with infinite loop.
    I am using jdk1.4,Acrobat 8.0, Windows environment.
    Can u help me in this regard'
    Thank u
    grani

    import java.io.FileInputStream;
    import java.io.InputStream;
    import javax.print.Doc;
    import javax.print.DocFlavor;
    import javax.print.DocPrintJob;
    import javax.print.PrintException;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.SimpleDoc;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.print.attribute.standard.Copies;
    import javax.print.attribute.standard.MediaSizeName;
    public class PDFPrint {
    static public void print(InputStream inputStream, PrintService printService) throws PrintException {
    Doc doc = new SimpleDoc(inputStream, DocFlavor.INPUT_STREAM.AUTOSENSE, null);
    PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet();
    attributes.add(MediaSizeName.ISO_A4);
    attributes.add(new Copies(1));
    print(doc, attributes, printService);
    }//print()
    static public void print(Doc doc, PrintRequestAttributeSet attributes, PrintService printService) throws PrintException {
    if (printService == null) {
    printService = PrintServiceLookup.lookupDefaultPrintService();
    System.out.println("The Printer Name is :"+printService.getName());
    DocPrintJob docPrintJob = printService.createPrintJob();
    System.out.println("Before Print Start()");
    docPrintJob.print(doc, attributes);
    }//print()
    public static void main(String args[])
    PrintService defaultPrintService = PrintServiceLookup.lookupDefaultPrintService();
    String file="c:/BackUp/file.pdf";
    FileInputStream fis=new FileInputStream(file);
    System.out.println("Before Print() called ..");
    print(fis,defaultPrintService);
    System.out.println("After Printing....");
    I am using this code to print pdf file. But when I try this one automatically the printer starting with print ascii codes with infinite loop.
    I am using jdk1.4,Acrobat 8.0, Windows environment.
    Can u help me in this regard'
    Thank u
    grani

  • Unable to print PDF file in HP deskjet printer ink advantage 1515

    Hi , currently i have difficulty in using my printer(HP deskjet  printer ink advantage 1515 ) to print PDF file, but Microsof word and powerpoint is ok,, so , any idea?

    You are welcome!
    I have a few more suggestions for you to try that might help. You can try printing your PDF file by using another program, or you can try running the Print and Scan Doctor. This diagnostic tool will check for any conflicts that could be causing the issue. The tool will show you a report at the end. If there was a problem that the tool could not fix, you will notice it in the results.If there was no issues detected, you can also try Uninstalling the Printer Software from the Control Panel, restarting your PC and reinstall the full driver here: HP Deskjet Ink Advantage 1515 All-in-One Printer 
    If the PDF's not printing was due to an issue with the printer software, the issue would be resolved by uninstalling and reinstalling the printer. If the problem continues, try posting this issue in the Adobe Forums for further assistance.
    Have a great day
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • PDF files can not be printed

    Good time
    problem with printing PDF files to the printer. While all other documents (doc) printed without problems.
    The problem is not in the Preview.app, as doc files from it printed without problems. Just tried the program adobe acrobat, just does not print.
    System 10.9.2, macbook air
    Printer HP LaserJet CM1415
    connected via WI-FI
    Log:
    28.02.14 20:30:32,901
    Preview[1679]
    SCNetworkReachability server not available
    28.02.14 20:30:32,901
    Preview[1679]
    SCNetworkReachability server not available
    28.02.14 20:30:32,908
    Preview[1679]
    socket(PF_ROUTE) failed: Operation not permitted
    28.02.14 20:30:32,921
    Preview[1679]
    [QL] After retry, preview was from a different type for <QLPreview 0x7fe932d0b4b0 58627 file:///Users/olegpopov/Desktop/%D0%A0%D0%B5%D0%B7%D1%8E%D0%BC%D0%B5%20%D0%91%D 0%B8%D1%80%D1%8E%D0%BA%D0%BE%D0%B2%20%D0%90%D0%9D.doc>
    28.02.14 20:30:33,286
    sandboxd[246]
    ([1679]) Preview(1679) deny mach-lookup com.apple.SystemConfiguration.SCNetworkReachability
    28.02.14 20:30:33,307
    sandboxd[246]
    ([1679]) Preview(1679) deny system-socket
    28.02.14 20:30:33,308
    Preview[1679]
    It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil.  This is a programming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext() to debug.  This will be logged only once.  This may break in the future.
    28.02.14 20:31:43,998
    HP Alerts[1703]
    Attempt to add read-only file at path file://localhost/Library/Printers/hp/Frameworks/HPEventStore.framework/Resource s/EventClassStore.hpstore read/write. Adding it read-only instead. This will be a hard error in the future; you must specify the NSReadOnlyPersistentStoreOption.
    28.02.14 20:31:48,790
    com.apple.Preview.TrustedBookmarksService[1707]
    Failure to de-serialize bookmark data file.
    28.02.14 20:34:22,517
    xpcproxy[1733]
    assertion failed: 13C64: xpcproxy + 3438 [D559FC96-E6B1-363A-B850-C7AC9734F210]: 0x2

    Hi Sam ...
    Quit Safari.
    Go to   HD/Library/Internet Plug-Ins
    Move the Adobe PDF Browser plug in (or just PDF Browser plugin) to the Trash.
    Relaunch Safari to test.
    If that didn't help, open System Preferences > Print & Scan > Print and delete the print queue.
    Then try again.

  • Undesired multiple pdf files created with multipage print.  Acrobat 9.5

    Hello,
    I have a 20 tab spreadsheet in Excel 2010, 18 tabs of which are presentation pages.
    Most are landscape letter, 3 or 6 are landscape legal
    The first time around, I selected the 18 tabs, file/printed to pdf, and I ended up with a perfect pdf, All 18 pages, 3 of which were legal size.
    I change department names, change a bunch of data, added a few more tabs.
    When I commence the same print routine, selecting all tabs to be included, I now get one 16 page pdf, a number of 1 page pdf's, and one three-page pdf.  Each time the print routine asks for the file name.  8 times in total, instead of just once.  What triggers this unwanted multi file split, and how can I prevent it?
    Thank you for any and all suggestions,

    Hello,
    I have a 20 tab spreadsheet in Excel 2010, 18 tabs of which are presentation pages.
    Most are landscape letter, 3 or 6 are landscape legal
    The first time around, I selected the 18 tabs, file/printed to pdf, and I ended up with a perfect pdf, All 18 pages, 3 of which were legal size.
    I change department names, change a bunch of data, added a few more tabs.
    When I commence the same print routine, selecting all tabs to be included, I now get one 16 page pdf, a number of 1 page pdf's, and one three-page pdf.  Each time the print routine asks for the file name.  8 times in total, instead of just once.  What triggers this unwanted multi file split, and how can I prevent it?
    Thank you for any and all suggestions,

  • After I upgraded to Firefox 4 on Windows XP, I was no longer able to print anything directly from a website except PDF files. I can print documents from any installed program on my hard drive. My printer is an HP LaserJet 1220

    I edited my original question above to provide all the info that I can think of. It is very frustrating to no longer be able to directly print from a website except for PDF files. I can do a work around by copying a web page to Microsoft Word and then printing it but I don't understand why I lost a basic function. David Pollock

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages

  • I cannot print a shipping label pdf file - there is no print button, and when I choose print preview, the page is blank

    I used to be able to print shipping labels from Amazon.com. The label image is a pdf, but on the pdf page there is no print button. When I go to file print preview in the main tool bar, the image shows the file name, but no shipping label.

    You can't delete pages with Reader, only with Acrobat.

  • Print a pdf file with dot matrix printer epson lx 350

    Hi  every body, I've a problem with my dot matrix printer. If i want to print a pdf file, the writers are not in a good format. please help me.
    Excuse if question is not correct it's not depend for me because i'm not an english but french. Thanks!

    Bonjour je m'excuse beaucoup pour poster dans un premier temps en anglais. Je ne savais pas que c'était possible en français.
    Voici mon problème: J'ai une imprimante matricielle de type EPSON LX-350 et je souhaite imprimer des fichier PDF (Adobe reader). Mais la police qu'elle sorte est différente de celle attendue après impression et pourtant avec un fichier Word ou Excel je n'ai pas ce problème de format de police. Alors la question est: est t-il possible d'imprimer sans probléme avec une imprimante matricielle un fichier PDF si oui qu'est comment doit procéder. Existe t'il quelqu'un qui l'a déja essayer et avec quelle marque d'imprimante.
    Merci de votre disponibilité.

Maybe you are looking for

  • External hard drive mysteriously disappeared.

    My external hard drive (Firewire) mysteriously disappeared. I can get it to pop up in Disk Utility, but I can't get it to show on the desktop. I've tried it on a few Mac computers. Do you have any idea what happened?

  • Clipping Mask not working

    Okay, so I am EXTREMELY new to this (I started about an hour ago!) I am trying to make a clipping mask with the mask being the outline of France and the image inside the French flag. Here are the steps I've taken so far: File>New Open>Silhouette of F

  • Windows Server 2008 Migration

    Hi, Which will be easier, migrating from SBS 2008 to a new SBS 2008 or migration from 2008 to SBS 2011? or should I say less complicated migration? Thank You

  • How to prevent Cell from getting focus when I click on a cell in JTable

    Hi, I have a new problem which I did not have when using jdk1.3. I have a non editable JTable. Now whenever I select a row the row gets highlighted - which is ok but at the same time the cell on which I click ( to select the row ) also gets focus. Pr

  • Logical Disk Space Results - Convert to GBytes

    Hi there  I'm using my own logical disk space alerts that's not part of the built-in two-state monitor. The only problem I'm facing at the moment is that within the alert description, I need to get the attribute that shows Mbytes converted/changed to