Online pdf Manual is corrupt... alternate source?

I've tried several times to download the manual. Adobe Reader says the file is corrupt. Are there alternate sources?

http://manuals.info.apple.com/enUS/iPhone_UserGuide.pdf
Message was edited by: paulcb

Similar Messages

  • Some PDF attachments are corrupted when emailed using javamail

    I have a java class that takes a file name, 'To' email, and 'From' email as parameters, and then emails the named file to the specified address as a Multipart email.
    The problem that I am facing is that sometimes the PDF cannot be opened when it arrives because it is corrupt. I know that prior to sending, the PDF opens without issue, so the problem is in the code somewhere.
    There are a couple of oddities here:
    1) PDFs that get corrupted and PDFs that do not get corrupted are generated from the same source (Oracle Report), so I believe that rules out a problem with malformed emails?
    2) If I compare the PDF before it gets sent to the PDF that arrives in my inbox using a hex editor (XVI32), the files are identical except that an extra character is getting added to the corrupt PDFs at the end of each line - hex '0A', which corresponds to ASCII linefeed. This indicates to me that maybe there is a problem with the way that the file is getting encoded when it is read. If I remove all of the 0A characters, the file opens correctly.
    I believe that the code I am using is set up correctly, as I have looked at countless examples of this online to try to find my problem. Hopefully someone can point me in the right direction. Code is included below.
    Thanks,
    Nick
    import java.util.*;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class test {
        public static void main(String args[]) {
            System.out.println("entered TEST email class");
            if (args.length < 3) {
                System.out.println("Invalid number of arguments. Syntax is 'java test <fileName> <fromEmail> <toEmail>'");
            } else {
                System.out.println("Correct number of arguments.");
                send(args[0], args[1], args[2]);
        public static void send(String fileName, String fromEmail, String toEmail) {
            System.out.println("Made it to SEND method");
            try {
                Properties props = new Properties();
                props.put("mail.smtp.host", "email.host");
                Session session = Session.getDefaultInstance(props, null);
                MimeMessage msg = new MimeMessage(session);
                //set from/to email addresses
                System.out.println("Setting email addresses...");
                msg.setFrom(new InternetAddress(fromEmail));
                msg.setRecipients(javax.mail.Message.RecipientType.TO, toEmail);
                //set email subject
                System.out.println("Setting subject...");
                msg.setSubject("email from TEST class");
                //define a body part for the email text and add text to it
                System.out.println("Setting body...");
                MimeBodyPart messageBodyPart = new MimeBodyPart();
                messageBodyPart.setContent("This is the email body. Here is some more body.", "text/html");
                //add code for attachment here!!
                System.out.println("Setting attachment...");
                MimeBodyPart attachFilePart = new MimeBodyPart();
                FileDataSource fds =
                        new FileDataSource(fileName);
                attachFilePart.setDataHandler(new DataHandler(fds));
                attachFilePart.setFileName(fds.getName());
                //define a multipart, and add the text body part and the attachment body part to it
                System.out.println("Building message...");
                Multipart mp = new MimeMultipart();
                mp.addBodyPart(messageBodyPart);
                mp.addBodyPart(attachFilePart);
                //add the multipart to the message
                msg.setContent(mp);
                //send the email
                System.out.println("Sending message...");
                Transport.send(msg);
                System.out.println("Email has been sent!");
            } catch (Exception e) {
                System.out.println("Error in test.send method: " + e.getMessage());
    }Edited by: nbacon on Sep 2, 2010 12:12 PM

    Normally pdf files are text, with any binary data represented as encoded text. If your pdf files
    include raw binary data, JavaMail can be confused. JavaMail will try to guess what encoding
    is appropriate for your data. If the data is mostly text, JavaMail will use quoted-printable encoding,
    and will canonicalize the text lines to end with CRLF (0x0D, 0x0A). A 0x0D in the binary will look
    like an end of line and will turn into 0x0D, 0x0A.
    You can force JavaMail to use base64 encoding for your data, which will preserve the binary
    data exactly, by using
    attachFilePart.setHeader("Content-Transfer-Encoding", "base64");
    after setting the content for the part.
    Alternatively, you could figure out how to generate pdf files that don't include raw binary data.

  • I have ADOBE X reader installed in my systems. When I wanted to open an online pdf form, Mozilla puts up a error message and the form does not open.

    When I try to open a online pdf form, I get a error message to close the reader and try it again. Sometimes, the message does not come but what I see is just a BLACK screen in Mozilla.

    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Quick question re: PDF manuals

    Just curious FCP users -- does the new version of FCP Studio contain PDF manuals as in previous versions?
    For some reason they've stopped producing the User Manual and Plugin Manuals for Logic Pro, and I'm baffled. The help files are all html and available via Apple Help, but that's it -- not bookmark-able or friendly at all.
    Thanks in advance!

    Nope, definitely no PDFs.
    I used Pacifist to search the installer packages, and Spotlight on an installed copy, and the only PDFs included are multiple languages of the CD-booklet-sized "Exploring Final Cut Pro 7.pdf".
    Hopefully Apple at least designed book-format manuals, and will release them as PDFs in due course. I find the in-app help system to be very difficult to use, and the online version (while handy, for sure) is an equally incomplete solution.
    While I applaud Apple for not wasting the paper and packaging to include a full set of printed copies, I referred to the PDFs all the time. Being able to search effectively, add bookmarks and Command-Tab between your PDF reader and the app is simply a better way to work/learn.

  • Online .pdf documents, meta tags; title, keywords, descriptions. search engines

    Hi. In DW 8.0.
    I searched the forums for this but was unable to find the answer.
    I would like to have meta tags in my .pdf files that are on the web.
    When someone does a search for one of them in Google or Yahoo!, it reads the title in a bizarre upper & lower case letter pattern under the search results page.
    "ExaMPLe SAMple tiTLE"
    Correct me if I am wrong, but Google creates source code for .pdfs so others can search for them, but I do not understand why the title looks the way it does.
    I was hoping by changing the title meta tag in the actual .pdf using Acrobat would solve this, but I am waiting to see if this will work.
    Does anyone know of a better way of changing/adding the meta tags to an online .pdf document?
    Thanks.

    PDF is a print document.
    HTML is a web document.
    AFAIK, meta tags are found only in web documents.
    Soluiton would be to convert your PDFs to HTML pages and use your own meta tags and titles.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Mountain Lion pdf manual

    I'm in immediate need of a pdf manual for Mountain Lion.  My mom just got a Macbook Air for Christmas.  I'm a Windows person so I'm learning as well in order to teach her. 
    All I can find online is the Snow Leopard manual, but that is a few years old.  I know that Mountain Lion is version 10.8.xx right now, so I want to get the most up to date information.
    This will be the best way for her to learn the os.  She connects to the internet through the cell phone hot spot, so she has to watch her data usage.  All she does is get email, look at Facebook, and play games already on the computer.  
    She will not take advantage of all the videos etc on the internet due to a data allowance on her cell phone plan.
    Is such a manual available?  Thanks.

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Apple is not here. Apple does not answer questions here. You will need to contact Apple directly for a solution.

  • InDesign PDF Manual

    I tried downloading the manual from the main InDesign Info page and the link seems to be malfunctioning. Can anyone point me to a good copy of the InDesign CC64 PDF Manual?
    Thank you

    @Ellis – look at the source code of the web page you are getting, if you chose the link Steve has posted in answer #1.
    Here what I can see from Safari:
    <html>
      <head>
        <meta http-equiv="content-type" content="text/html">
        <title>InDesign CC manual (PDF 20 MB)</title>
      </head>
      <body style="overflow-y:hidden;margin:0 4px 0 0;">
        <iframe src='http://helpx.adobe.com/pdf/indesign_reference.pdf' width="100%" height="100%" />
        </body>
    </html>
    Don't know why the title in the head states 20 MB. The file size is about 9 MB. ;-)
    I also had problems with that link and code in Firefox and Chrome on my MacBook.
    Opened it in Safari. Safari stated that there are problems with my Acrobat Reader. Huh?
    Then I looked at the source and took the link out of this iframe src tag.
    No problem downloading that.
    Uwe

  • Do The FCS 3 PDF Manuals Have An Index In The Back?

    I find that an index is generally more useful than a search field.
    The old PDF manuals always had an index in the back and when I first downloaded the FCS 3 PDF manuals I thought they too had indexes, but I can't find them any more.
    Was I mistaken?
    Have they never had indexes in the latest versions or am I doing something wrong?

    Hi Wilderness08,
    Yes, you can do that indeed.
    As you are already using an InDesign Book file. You can add the companion workbook InDesign file as the last file in the Book panel. This document can have its own document page numbering, making it part of your book allows you to generate either an Index or a Table of Contents that is sourced from the rest of the publication.
    You'll need to make sure that for the ToC, that in the companion workbook you've not used the same 'heading' styles that you use in the rest of the publication to generate the ToC.
    Define the TOC Style to your companion workbook (Layout > Table of Content Styles), and select the 'Include Book Documents'.
    When you Generate Index, select the 'Include Book Documents' to include index entries from other documents.
    To publish only the companion workbook, select the InDesign file inside the book panel and choose Export Selected Document to PDF.
    Hope this helps,
    Cari

  • Online PDFs

    Hi Guys
    First time user, so please try to avoid flames also I felt this was the most appropriate forum for my question so apologies in advance if its the wrong one and some one is offended by it.
    I want to create an online PDF for someone to complete online.
    My question is, does the other party need writer also.
    I dont want them to have to dload, print and send to me manually, i want it filled in electroincally.
    Is this possible ?
    Regards

    Try this ...
    Open a Finder window then from the menu bar click Go > Go to Folder
    Type or copy paste the following:
    /Library/Internet Plug-Ins
    Click Go.
    If you see the:  AdobePDFViewer plugin (or anything Adobe related)  in the Internet Plug-Ins folder, move it to the trash.
    Quit and relaunch Safari to test.

  • Is there a PDF manual for iMovie 13 ?

    is there a PDF manual for iMovie 13

    A hard copy is a nice convenience when you really want to study and use the features without constantly interrupting the editing, and sharing valuable screen space to the online manual.
    I have prepared a WORD and PDF document for download at this public Google Drive link.
    All windows and viewing panes have been expanded. The entire document is ~160 pages.
    https://drive.google.com/folderview?id=0Bw00Rx65lfDqeXNaNlNwblNZTjg&usp=sharing
    Enjoy

  • Why is floating toolbar on online pdf files inactive?

    I am running Windows 7 Professional and Adobe Reader 10.1.2.  When trying to save online PDF files to my hard drive I cannot make use of the save button on the floating toolbar (see image).  Can anybody explain why and what if any settings I need to change?

    Dear Ankit, I reverted the check box option in Adobe Reader and rebooted my computer to make sure the changes took effect.  When I tried to save the file for which you had included the link, I found the buttons in the reader toolbar on top still inactive.  See first screenprint.  No floating toolbar in this document.  As stated previously the only way to save this file to my computer is to use the command toolbar on my browser.  I then tried to save a PDF file downloaded from a Sony website (see link below and 2nd and 3rd screenshot).  This time the floating toolbar showed up but again, it was inactive.  I don't understand why the floating toolbar on some PDF files shows while on others it doesn't.  Regardless, in either case the reader toolbars are inactive.  Please try this yourself by going to the link below.  I wonder if you experience any of my problems.  Thanks!
    http://esupport.sony.com/US/perl/model-home.pl?mdl=DSCW80HDPR&template_id=1&region_id=1&ta b=manuals#/manualsTab

  • How do I complete online .pdf form and then print?

    Sometimes, I can enter data on an online .pdf form and sometimes, I cannot.  I need to complete forms and then print them rather than print a blank form to complete by handwriting.  Window XP and Vista on my computers.  I have installed some Adobe and Acrobat programs but do not know which ones would help me with my problem.  thank you

    Adobe is the company. I assume you are talking about Reader and Acrobat. It would be nice to know which ones, but the answer is likely the same. With Reader, you can only complete the form electronically in Reader if the creator added from fields for your to fill in. If not you have one option and that is to print. You could still play with filling it out electronically, but you would have to print the form, put it back in the printer, and use your word processor to place the information on the form. This is a bit time consuming and requires some measuring and possibly some trial and error, but it does work - I used to fill forms out like this all the time, but generally forms I filled out once a month and so it was worth the time.
    With Acrobat, you can use the Typewriter tool, Use the Text Touchup Tool (not real convenient) with the ctrl key used when you place the cursor, or create your own fields. Depending on your version of Acrobat, you may not be able to create form fields (like AA7 Std and before I think, Pro includes the form tools). With forms, you may also have the choice of the form files under TOOLS>Advanced Editing (typically called AcroForms) or the FORM menu that typically takes you to Designer.
    Those are your choices, though there are variations with version (next time try to tell us the program version you are using and if it is Reader or Acrobat - for Reader you may want to go to the Reader forum).

  • Opening an Online PDF

    Since our IT Department installed Acrobat Pro 9.0 on my computer, I have not been able to click on a PDF link on a web site and open it. When we click on the file, we get the following error message:
    "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser. Adobe Acrobat/Reader version 8 or 9 is required. Please exit and try again."
    Since I'm using Acrobat 9, the error message is, well, erroneous. How do I solve the problem? The work around they came up with was to install Foxit Reader. Since I updated Acrobat 9 earlier today, I'm back to not being able to read online PDFs (which means that I have to reassociate Foxit with the files, unless someone here can tell me how to get Acrobat Pro to work.)

    Do you also have Reader on the machine? If so that might be the problem. If not, then do you have Acrobat set to view in the browser?

  • Cannot Create Online PDF

    Beginning last evening I was able to log into my Create Online PDF account but when I tried to create a PDF from HTML as I usually do, I was told by the pop up window Your Trials Have Expired. It went on to,say, "We're sorry. You have used all your free trials. If you live in the U.S. or Canada you can subscribe to the Create Adobe Copyright Registered PDF online service and continue to convert your files into high quality PDF documents.
    Monthly subscription US#9.99
    Annual subscription US$99.99
    a two month savings
    I have had an ongoing account for this and without a problem Create Adobe PDF Online comes through each month saying:
    Sent: Sunday, December 26, 2010 3:53 AM
    Subject: Create Adobe PDF Online Subscription Renewal
    Thank you for renewing your Create Adobe PDF Online service subscription.
    Following is the receipt for your order:
    Transaction Date
    Transaction Number
    Subtotal
    Tax:
    Total
    Billing Information
    Payment Information
    Additional Resources
    From: "Create Adobe PDF Online" <[email protected]>
    (By the way this is a no reply email) meaning).
    Hi. This is the qmail-send program at yahoo.com.
    I'm afraid I wasn't able to deliver your message to the following addresses.
    This is a permanent error; I've given up. Sorry it didn't work out.
    <[email protected]>:
    64.18.5.10 does not like recipient.
    Remote host said: 550 No such user - psmtp
    Giving up on 64.18.5.10.
    I then started a Web Case and haven't hear a word. Every time Create PDF Online inserts a red service alert, my heart almost stops because I know I am going to get into trouble. This has all happened before. This red alert saying Users of Adobe PDF Online may experience an interruption in service between 5:00pm and 6:30pm PST on 1/14/11, while maintenance activities are being performed. This red alert has been going on for a lot longer than this recent alert. There has been a red Service alert on the page for that three weeks. I was able to create files without a problem. But now, I am welcomed to my email address, however my five free trials have ended and I am asked to subscribe. I am paid up until the next transaction date of 01/26/2011. My free trials ended back in 2007 if not earlier when I subscribed to this Online PDF service.

    I'm having the same issue. When I log in it says my trial has expired. But I have been a subscriber since 2007. And so far I have lost a whole days worth of work trying to figure out what is wrong with it. I have not yet found a way to log in as a subscriber. Adobe please fix the issue. I will cancel my subscription if the problem persists, I'm not paying $119.88 for something that is not going to work or help my buisness.

  • PDF file gets corrupted when generated from BSP

    Hi,
         I am generating a PDF file from a BSP page ( see the code below). The problem is that PDF file gets corrupted and  I am unable to open it. I also tried to use other functions like GUI_Download and DOwnload as suggested by many and they also do not work either. Has any one generated a PDF from BSP and can some one help?
    Data: GG type String.
    event handler for data retrieval
    data : event type ref to cl_htmlb_event.
    class cl_htmlb_manager definition load.
    class CL_HTTP_RESPONSE DEFINITION LOAD.
    DATA : PARAMS TYPE PRI_PARAMS,
             VALID  TYPE C,
    GV_SUCCESS_SPOOL_NO LIKE SY-SPONO.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING DESTINATION           = 'LOCL'
               COPIES                = COUNT
               LIST_NAME             = 'TEST'
               LIST_TEXT             = 'Test NEW-PAGE PRINT ON'
                  IMMEDIATELY           = ''
                  RELEASE               = 'X'
                  NEW_LIST_ID           = 'X'
               EXPIRATION            = DAYS
                  LINE_SIZE             = 140
               LINE_COUNT            = 23
               LAYOUT                = 'X_PAPER'
               SAP_COVER_PAGE        = 'X'
               RECEIVER              = 'SAP*'
               DEPARTMENT            = 'System'
                  NO_DIALOG             = 'X'
        IMPORTING OUT_PARAMETERS        = PARAMS
                  VALID                 = VALID.
      IF VALID <> SPACE.
        NEW-PAGE PRINT ON  PARAMETERS PARAMS NO DIALOG.
    write :/ 'Hello Message1'.
    write :/ 'Hello Message2 '.
    NEW-PAGE PRINT OFF .
      ENDIF.
    data :        spool_no TYPE TSP01-RQIDENT .
    spool_no = sy-spono.
    DATA: itab TYPE TLINE,
            witab TYPE TABLE OF TLINE,
            output TYPE STRING,
            outputx TYPE XSTRING.
    data : l_pdf_len type i.
    data: mi_bytecount type i.
    DATA : APP_TYPE TYPE STRING VALUE  'APPLICATION/PDF' .
    DATA:    cached_response TYPE ref to if_HTTP_RESPONSE.
    data : l_display_url type string .
    data : guid type GUID_32 .
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          SRC_SPOOLID              = spool_no
          NO_DIALOG                = 'X'
       IMPORTING
          PDF_BYTECOUNT            =  mi_bytecount
        TABLES
          PDF                      = witab
        EXCEPTIONS
          ERR_NO_ABAP_SPOOLJOB     = 1
          ERR_NO_SPOOLJOB          = 2
          ERR_NO_PERMISSION        = 3
          ERR_CONV_NOT_POSSIBLE    = 4
          ERR_BAD_DESTDEVICE       = 5
          USER_CANCELLED           = 6
          ERR_SPOOLERROR           = 7
          ERR_TEMSEERROR           = 8
          ERR_BTCJOB_OPEN_FAILED   = 8
          ERR_BTCJOB_SUBMIT_FAILED = 9
          ERR_BTCJOB_CLOSE_FAILED  = 10
          others                   = 11.
      if sy-subrc EQ 0.
        LOOP AT witab INTO itab.
          CONCATENATE
            output
            itab-tdline
          INTO output in character mode.
        ENDLOOP.
    endif.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
            EXPORTING
                text   = output
                mimetype =   'APPLICATION/PDF'
            IMPORTING
                buffer = outputx.
    concatenate cl_abap_char_utilities=>byte_order_mark_little
    outputx
    into outputx in byte mode.
      response->set_header_field( name = 'content-type' value =
    'APPLICATION/PDF; charset=utf-16le'  ).
      response->delete_header_field( name =
    if_http_header_fields=>cache_control ).
      response->delete_header_field( name = if_http_header_fields=>expires
      response->delete_header_field( name = if_http_header_fields=>pragma )
      response->set_header_field( name = 'content-disposition'
                                  value = 'attachment; filename = TEST.PDF'
      l_PDF_len = xstrlen( OUTPUTX ).
      response->set_data( data = OUTPUTx
                          length = l_PDF_len ).
    navigation->response_complete( ).
    Regards
    Amit Agrawal

    HI Craig Cmehil,
                   I have tried this code as well as given in the URL specified by you. But using this also browser shows the following  content. It seems that PDF content is corrupted.
    My Output as shown on Browser Starts below this line----
    DF-1.3
    %âãÏÓ
    2 0 obj
    /WinAnsiEncoding
    endobj
    3 0 obj
    <<
    /Type /Font
    /Subtype /Type1
    /BaseFont /Courier
    /Name /F001
    /Encodg 2 0 R
    >>
    endobj
    4 0 obj
    <<
    /Length 5 0 R
    >>
    stream
    /F001 7.30 Tf 0 0 0.753 rg BT 18.00 570.65 Td 0 Tw <33302E30362E3230302020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020>Tj ET 0 0 0.753 rg BT 2950 570.65 Td 0 Tw
    <20204854545020436F6E74726F6C202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020>Tj ET 0 0 0.753 rg BT 572.40 570.65 Td 0 Tw <2020202020202020202020202031>Tj ET q 0 0 0 RG 0.55 w 18.00 562.90 m
    634. 562.90 l S Q 0 0 0.753 rg BT 18.00 551.45 Td 0 Tw <48656C6C6F20416D6974>Tj ET 0 0 0.753 rg BT 18.00 541.85 Td 0 Tw <48656C6C6F204765726176>Tj ET
    endstream
    endobj
    5 0 obj
    624
    endobj
    6 0 obj
    <<
    /Type /Page
    /MediaBox
    /Parent 1 0 R
    /Resource
    <<
    /ProcSet
    /PDF /Text
    /Font
    <<
    /F001 3 0 R
    >>
    /XObject
    <<
    >>
    >>
    /Contents 4 0 R
    >>
    endobj
    7 0 obj
    <<
    /Author (AMG )
    /CreationDate (20050630 181301)
    /Creator (Form X_58_170 EN)
    /Producer (SAP R/3 Release 620 )
    %SAPinfoStart TOA_DARA
    %FUNCTI=(    )
    %MANDANT=(   )
    %DEL_DATE=(00000000)
    %SAP_OBJECT=(          )
    %AR_OBJECT=(          )
    %OBJECT_ID=(                          )
    %FORM_ID=(                                        )
    %FORMARCHIV=(  )
    %RESERVE=(   )
    %NOTIZ=(                                                                )
    %SAPinfoEnd TOA_DARA
    >>
    endobj
    1 0 obj
    <<
    /Type /Pages
    /Kids
    [ 6 0 R
    /Count 1
    >>
    endobj
    8 0 obj<<
    /Type /Catalog
    /Pages 1 0 R
    /PageMode /UseNone
    >>
    endobj
    xref
    0 9
    0000000000 65535 f
    0000001801 00000 n
    0000000017 0000n
    0000000052 00000 n
    0000000157 00000 n
    0000000840 00000 n
    0000000862 00000 n
    0000001048 00000 n
    0000001869 00000 n
    trailer
    /Size 9
    /Root 8 0 R
    /Info 7 0 R
    >>
    startxref
    1944
    %%EOF
    Browser Displey Content Ends----
    My Coding Starts----
    Data: GG type String.
    event handler for data retrieval
    data : event type ref to cl_htmlb_event.
    class cl_htmlb_manager definition load.
    class CL_HTTP_RESPONSE DEFINITION LOAD.
    DATA : PARAMS TYPE PRI_PARAMS,
             VALID  TYPE C,
    GV_SUCCESS_SPOOL_NO LIKE SY-SPONO.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING DESTINATION           = 'LOCL'
               COPIES                = COUNT
               LIST_NAME             = 'TEST'
               LIST_TEXT             = 'Test NEW-PAGE PRINT ON'
                  IMMEDIATELY           = ''
                  RELEASE               = 'X'
                  NEW_LIST_ID           = 'X'
               EXPIRATION            = DAYS
                  LINE_SIZE             = 140
               LINE_COUNT            = 23
               LAYOUT                = 'X_PAPER'
               SAP_COVER_PAGE        = 'X'
               RECEIVER              = 'SAP*'
               DEPARTMENT            = 'System'
                  NO_DIALOG             = 'X'
        IMPORTING OUT_PARAMETERS        = PARAMS
                  VALID                 = VALID.
      IF VALID <> SPACE.
        NEW-PAGE PRINT ON  PARAMETERS PARAMS NO DIALOG.
    write :/ 'Hello Amit'.
    write :/ 'Hello Gaurav '.
    NEW-PAGE PRINT OFF .
      ENDIF.
    GV_SUCCESS_SPOOL_NO = sy-spono.
    data :        spool_no TYPE TSP01-RQIDENT .
    spool_no = sy-spono.
    write: GV_SUCCESS_SPOOL_NO.
    *write: spool_no.
    IF display_type = 'convertspool'.
      DATA: itab TYPE TLINE,
            witab TYPE TABLE OF TLINE,
            output TYPE STRING,
            outputx TYPE XSTRING.
    data : l_pdf_len type i.
    data: mi_bytecount type i.
    DATA : APP_TYPE TYPE STRING VALUE  'APPLICATION/PDF' .
    DATA:    cached_response TYPE ref to if_HTTP_RESPONSE.
    data : l_display_url type string .
    data : guid type GUID_32 .
           spool_no like TSP01-RQIDENT .
    *spool_no = GV_SUCCESS_SPOOL_NO .
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          SRC_SPOOLID              = spool_no
          NO_DIALOG                = 'X'
       IMPORTING
          PDF_BYTECOUNT            =  mi_bytecount
        TABLES
          PDF                      = witab
        EXCEPTIONS
          ERR_NO_ABAP_SPOOLJOB     = 1
          ERR_NO_SPOOLJOB          = 2
          ERR_NO_PERMISSION        = 3
          ERR_CONV_NOT_POSSIBLE    = 4
          ERR_BAD_DESTDEVICE       = 5
          USER_CANCELLED           = 6
          ERR_SPOOLERROR           = 7
          ERR_TEMSEERROR           = 8
          ERR_BTCJOB_OPEN_FAILED   = 8
          ERR_BTCJOB_SUBMIT_FAILED = 9
          ERR_BTCJOB_CLOSE_FAILED  = 10
          others                   = 11.
      if sy-subrc EQ 0.
        LOOP AT witab INTO itab.
          CONCATENATE
            output
            itab-tdline
          INTO output in character mode.
        ENDLOOP.
    endif.
    *write : output.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
            EXPORTING
                text   = output
                mimetype =   'APPLICATION/PDF'
            IMPORTING
                buffer = outputx.
    *concatenate cl_abap_char_utilities=>byte_order_mark_little
    *outputx
    *into outputx in byte mode.
    CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING add_c_msg = 1.
    some Browsers have caching problems when loading Excel Format
      response->set_header_field( name = 'content-type' value =
    'APPLICATION/PDF'  ).
      response->delete_header_field( name =
    if_http_header_fields=>cache_control ).
      response->delete_header_field( name = if_http_header_fields=>expires
      response->delete_header_field( name = if_http_header_fields=>pragma )
        l_pdf_len = xstrlen( outputx ).
        cached_response->set_data( data   = outputx
                            length = l_pdf_len ).
        cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                           value = 'application/pdf' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.pdf' INTO l_display_url.
        cl_http_server=>server_cache_upload( url      = l_display_url
                                             response = cached_response ).
    RETURN.
    My Coding Ends----
    Any Further help on this.
    Regards
    Amit Agrawal

Maybe you are looking for

  • Bought a new iMac and need to download Adobe software programs

    I had to buy a new mac using maverick os x 10.9.4 and despite the data migration, I have to re-install all my software, including my adobe cs3 web premium suite. I have all the serial numbers, but I haven't unpacked the box with the discs. Does anyon

  • [IDCS3 WIN] Assert while importing tagged text

    Hi,<br /><br />I use the following code to import a tagged text from a buffer into a text frame:<br /><br />IDataBase* database = frameUIDRef.GetDataBase();<br /><br />InterfacePtr<IHierarchy> frameHierarhy(frameUIDRef, UseDefaultIID());<br />int32 c

  • Mapping trouble

    Hi all, Iam stuck with a  mapping problem and need Help!!! :). Would be grateful if someone could give me a hand on this. In The picture depicted below is the first problem: http://i42.tinypic.com/2epn3lt.jpg For Every occurance of "E1EDPT1",I want t

  • Put results of dynamic sql into pl/sql table

    Hi. I tried to "google up" solution to my problem but in vain, so if possible could you give me a hint? The test code which I will paste here is somewhat akward, it is part of bigger code and I tried to simplify and adjust it. The problem is: I have

  • How create an invoice from delivery using an idoc

    Hi expert, I'll like recive an help to know how implement the following solution: we would create an invoice from delivery sent into the idoc structure. In detail the process that we would implement is: To use an output type for outbound delivery and