Create pdf from xstring in the web ui

Hello everybody,
our requirement is to save a xstring as a pdf-file from the web ui. The xstring comes from an internal table.
The problem is that we dont know how we can sent the xstring to the browser.
We found this links but they do not help.
Downloads in WebUI-Anwendungen
Download data from web ui to Excel and PPT - CRM - SCN Wiki
We tried this code but it gives an error. When we change the type to csv, it will save a csv-file containing the code of the BSP. Something must be wrong with the response, we think.
    server->response->set_header_field(
                                name = 'Content-Disposition'"#EC NOTEXT
                                value = 'attachment; filename=myfile.pdf').
  server->response->set_header_field(
                 name = 'Content-Type'"#EC NOTEXT
                 value = 'application/pdfl' ).
DATA lv_content_bin TYPE xstring value 'any xstring'
comp_controller->server->response->append_data(
   EXPORTING
     data   = lv_content_bin    " Binärdaten
Does anybody know, how we can fix this?
Greetings Christian

Hi Christian,
I have done something like this for putting a PNG or JPG image to a page dynamically.  It's a different MIME type but this code may help for a BSP page with flow logic:
  _m_response->set_data( lv_xstr ).
   _m_response->set_header_field( name = if_http_header_fields=>content_type
                                  value = lv_mime ).
   _m_response->set_status( code = 200 reason = 'OK' ).
   _m_navigation->response_complete( ).
lv_xstr would be your XSTRING content and for your case lv_mime would be 'application/pdf'.  Hopefully it can help you out.
Regards,
Ryan Crosby

Similar Messages

  • Create PDF from scanner with the same size that the original

    Hello!!!
    i have a problem with acrobat professional
    i create a PDF from scanner but when the pdf is finished is shorter than the original picture.
    thanks for your help.

    Check in either page setup or if printing dialog box, and see if set 94% which pdf is usually set to. Set to full page or full.
    That's the only thing I can think of.

  • Create PDF from a Word document within Acrobat

    Hi!
    I am having trouble to create a PDF from a Word document within Acrobat itself, and not by using PDF Maker in Word. When I try to create a PDF using Acrobat, it gives me the choice to choose any Office format file, but Word format doesn't appear. I can convert from an Excel document or a PowerPoint document, but not from a Word document, even if Word 2010 is installed and works perferctly. Why?
    I know I can make a PDF in Word itself by printing to the Adobe PDF printer or by using PDF Maker, but I want to resolve the issue in Acrobat that prevents me to select a Word document in the Create PDF dialog window. You can see the dialog box in the screenshot attached.
    Any help would be appreciated.
    I am using Acrobat X version 10.1.8 on Windows 7 Home Premium and I have Office 2010 installed (with Word 2010).

    Thanks for your reply. PDF Maker works in all of my Office applications. However, in Acrobat, the file formats available for me to create PDF from figure all the Office file formats except the one for Word. This is not normal. At my school, Acrobat X and Office 2007 are installed, and I can use there both PDF Maker in Word and creating PDF from Word document within Acrobat.
    So I think maybe there's a key in my Windows registry that is not set correctly? or something like that. I repaired the installation of Office 2010, and I did so for Acrobat X too, but it doesn't help. Any idea of how I can resolve that?

  • Acrobat 8 can't locate scanner to create PDF from printed document using OCR

    Hello,
    I have an Epson scanner that is my default scanner on my OSX (10.6).  Every program I have locates my scanner perfectly except Acrobat 8.0.  Is there something I can do?
    From the home dialogue box I click "Create PDF from Scanner".  The next dialogue box opens and the Tab "Please Select a Device" doesn't let me scroll to find my scanner.  So the scan button is greyed out and I can't do anything.  Is there something I can do to make Acrobat clearly find my scanner?
    -Luis

    Check to see if they have a Native (not universal Binary) Twain Driver. Adobe refuses to allow universal Binary Twain Drivers in their programs.
    Either use a Software package from the SANE/TWAIN Project. (look up on Google). Or use a Pakage Like SilverFast.
    Before downloading the SANE/Twain Driver you have to look and see if the have a package for your current  OS  and for your particular Scanner. Stayaway from the SDK's unless your a Programer.
    Then when you install all the pieces and set up open Acrobat and go to document Create PDF from Scanner choose SANE/Twain. Should be able to scan with it.
    If you use SliverFast it is a standalone package  Just scan and save as a PDF then open in Acrobat.  or save as a Tiff or jpeg. Acrobat hasn't worked with a scanner since Macs went from OS9  to OSX.

  • Acrobat 9 Quits When Create PDF from Scanner Selected

    Hi. I wonder if anyone can advise please.
    I have recently installed Acrobat 9 on my MacBook Pro and have plenty of RAM. However, I can "Create PDF from Scanner" just the once. After that, Acrobat quits when I select Scan or quits if I cancel the scan.
    I have tried the following:
    1. Troubleshoot System Errors & Freezes
    2. New User account
    3. Recreated Preferences
    4. Booted from separate disk
    5. Repaired disk permissions
    6. Have no third party plug-ins installed
    7. Have run Repair Acrobat
    8. Changed Universal Access
    9. Defragmented disk & repaired files
    10. Safe Boot and reinstall Acrobat
    Nothing has worked except when I clean install I can scan through Acrobat once.
    I can scan from the scanner software - Lexmark 4850 - with a jpeg straight to Acrobat but want to try to solve the issue of scanning straight from the app.
    Thanks for your help people.
    Regards
    Paul

    After I discovered my problem of quitting after completing the scan of the first side of a 2-sided document and decided to go to Adobe for help, I should have known I was in real trouble after following their instructions for locating the Acrobat serial number. After bringing up the splash screen and clicking on it, instead of seeing the number the splash screen disappeared! So I had no option but to use the phone. Then their help person couldn't give me the serial number- he had to transfer me- and I chose to stay with him for help instead. He decided it was a conflict between the Acrobat & HP software and ended the help session.
    I then did some on-line research and discovered others with the same problem, and came up with the comparison test with the Windows version. Adobe's phone system didn't recognize my Case #, but the second Help person said it worked fine. At that point, I got the feeling that I was in real trouble. After another hour going over the same ground and repeated denials that their software was at fault, the Helper refused my request that they do a Windows comparison test or send me a Windows version to test myself and promised to call me back with results of their "research". That call never came.
    On the third call, again with the Case # unrecognized by the phone system, the Helper was even more unhelpful, probably after reading the record of the first two calls. He insisted on going back to the machine and over the same ground once again, and I ended the call.
    I agree that the on line approach is better, and I may have to make a double call to get the serial number (neither of the two I have, each different on the case or on the CD worked) and try that if my request for a supervisor fails. Fortunately they are so incompetent that they can't track starting over.
    I'm not a programmer, but have lots of varying experience with computers dating back to the first Atari-400. Since your Acrobat uses only the Twain driver component from your scanner software, the first place to look for a problem is in the Acrobat software, especially since the software doesn't run again after the first use without reinstalling, and the scanner continues to perform properly using it's installed software. The Windows comparison test such as Tim Whitfield was able to make, would clearly establish the Mac version of the Acrobat software to be at fault, but would still not resolve our problems. Unfortunately I hold out little hope for either you or I with Adobe, since neither their phone nor the online help has come up with a prior fix. This indicates a bug fix requirement, which for something like this looks to be a relatively long time in coming.

  • Create PDF from scanner using 8 and 10.5 or 10.6

    Just curious what the solution is for Mac Acrobat  when trying to create a pdf from your scanner.
    I understand the Mac OS 10.5 + 10.6 changed it's twain support.
    Once or twice I've create a pdf from a epson 1660 perfection scanner using Mac OS 10.4
    Under File>Create PDF>From Scanner> and the list of scanners would show up.
    I understand in 10.5 and 10.6 you can use image capture to achieve the same results.  I like the acrobate interface which allowed the continuation of pages being scanned into the same file name.
    Did adobe address this issue in future updates or product lines is is that feature gone for good.
    Is there anyway using 10.5 or 10.6 using adobe 8, 9 etc... that allows for this process to happen again?

    The 1660 Perfection scanner (which I have) is not a OS X native scanner, it is PPC code. If you want to run it under OS 10.5 you need to run Acrobat under Rosetta. I don't believe that option exists for Acrobat under OS 10.6

  • How to include non web pages to the "Create PDF from Web Page" feature?

    In Acrobat Pro (v. 10), when I use the "Create PDF from Web Page" feature, it works great for html pages, but it skips non-html links (doc, pdf, ppt, xls, etc). I need Acrobat Pro to convert those files and put them in the order as well. I don't see an option for this in settings. Is there ANY way I can do this? This is for an archiving purpose and I have 10,000 plus files to convert. Please help.

    This is a question i'm trying to answer too. My issue is that I have a PDF file which itself contains links to both DOC and PDF files. The end result is that I need one consolidated PDF containing all the linked files (in order).
    I can run the "create from web page" on this PDF file, and it'll download them, but not convert them. It just adds them as "jumbled" text to the end of the document. I need it to download, convert, and then append them.
    So, as isunshine3 asked above, any way to have Adobe convert the files that it finds linked when running the "create from web page"?
    THanks
    Matt

  • Create PDF from Web page using Acrobat X - Page Order

    I have a structured web site that is in fact Program Help The web pages are structured as follows:
    index.html - Main Topic Index page with links to all topic subject index pages
    topic/index.html - Topic Subject Index Page with links to all subject pages
    topic/subject.html - Subject page
    .....etc
    Using Acrobat 5 "Create PDF from Web Page" created a perfect logical PDF  page structure in the page order of of the web site. In Acrobat 5 page 1  was the Main Topic Index Page, page 2 was the 1st Topic Subject Index  Page, page 3 was the 1st Subject Page, then the 2nd subject of the 1st  Topic, etc. until the Topic Subjects were exhausted after which the 2nd  Topic Subject Index Page and so it went on. As a result the bookmark  structure was sensible. The page order was as follows:
    Main Topic Contents
    Topic 1 Contents
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Topic N Contents
    Subject 1 of Topic N
    Subject 2 of Topic N
    Acrobat X (just purchased) produces a differently structured PDF from the same HTML pages. The order is:
    Main Topic Contents
    Topic 1 Contents
    Topic 2 Contents
    Topic N Contents
    Main Topic Contents (a second time)
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Subject N of Topic 1
    Subject 1 of Topic 2
    Subject 2 of Topic 2
    Subject N of Topic N
    Question: Is there any way I can get back with Acrobat X the same page order I got with Acrobat 5?
    Any help appreciated. The website is www.caliach.com/caliach/vision/help/index.html
    Chris

    Acrobat is using the underlying mark up of the rendered HTML page.
    This may or may not provide an adequate input to Acrobat when it is noodling out how and what to tag.
    I suspect you may find that, to obtain an adequately tagged PDF, you may have to capture the web page content with the create bookmarks and create tags options off.
    Once you have the PDF make working copies.
    Try letting Acrobat tag this already created PDF to see what happens.
    You may have to manually tag the PDF.
    n.b., The default read order for western language can be altered by user selections in the accesibility setup or by selection in the PDF page(s) Page Properties.
    Be well...

  • File, create PDF, from web page, entire site...questions

    I am new to adobe, is this the proper forum for Adobe Acrobat 9 Pro for macintosh?  I think yes...
    Created a PDF from:  File, create PDF, from web page, entire site.
    Is there a way to print this without the background color?  If you printed from a browser, you could choose not to print the back ground color.  I know exactly the color.
    Is there a way to make this PDF look like the web, with no page breakes?  I have tried various things, but the page breaks are always displayed.
    Is there a way to create bookmarks on somthing other than the title tag in the web site?  The title tag is an SEO 1 sentence summary of the page, which makes for very long book mark names.
    Thanks for your help.
    bob
    www.answerstat.net

    I don't use v9, but what I would do is click the FILE--PRINT option, print to PDF, and enter to print one page (default is first page)

  • Create PDF From a backend web page

    Hello, this is my first post on the Adobe Forums
    I am trying to get a capture of a web page using Adobe Acrobe "Create PDF from Web Page" However, I cannot figure out how to capture a page after I have logged into the site. I thought that Adobe Acrobat would recognize that I had logged in from Internet Explorer, or my default browser.
    I keep getting the Wordpress login page. I need to be able to see the dashboard. Finding a solution to this will help me develop solutions to my other web capture questions.
    Regards,
    Greg

    That is a limitation of using that method. A workaround is to print to PDF from your browser after you have the page you want loaded, but I don't know if that's acceptable to you.

  • "Create PDF from Web Page" Yields Authorization Failure

    Acrobat 9 Pro Extended running on Windows XP Service Pack 3:
    When using "Create PDF from Web Page," certain linked pages result in an "Authorization Failure" error message. Is there any way to instruct Acrobat to disregard pages that are not downloadable and continue creating the PDF?

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • Create PDF From Web Page - Authenticated SharePoint Sites generate "Authorization Failure" error

    We have several authenticated sharepoint sites on our intranet, and we are trying to create a PDF of a site (x levels down) using the Acrobat create PDF from web page feature.  When you try to create a PDF from a non-sharepoint, authenticated website, a login prompt appears asking for login credentials.  However, when you try to use the same feature on an authenticated sharepoint site, you do not get prompted for credentials and instead get an Authorization Failure error.  the popup says "Error: Nothing Done".  We have successfully PDF'd anonymous sharepoint sites on the WWW.  Has anyone successfully PDF'd an authenticated SharePoint site? 
    Thanks in advance,
    -Richard.

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • Create PDF from web page w/password

    Would like to created a PDF using the 'Create PDF from WEB Page' function. The initial page of the site requires a login which we have but we seem to be unable to use Acrobat to archive the site because it requires a login. Is there a way to login and create a pdf of the site?

    I tested this in Acrobat X and the exact same issue occurs
    http://www.quantumdynamix.net/clients/image-map-test/ImageMapTest-AcrobatX.pdf
    This has to be considered a legatimate bug, especially since IMAGE MAPS is listes as one of the supported HTML features via the help files

  • Create PDF From Web Page Does Not Create Image Maps Properly

    I have a website that contains image maps. When I "Create PDF From Web Page", these image maps are not rendered properly. From what I can tell, this is a BUG within Acrobat, and I'm hoping that people can confirm this for me.
    I created a test page at http://www.quantumdynamix.net/clients/image-map-test/. I placed the images maps my manually coding the coordinate information, so the maps are PRECISELY placed exactly over the squares. Each image map navigates to an anchor corrisponding to the number on the red square.
    When I created the PDF using the "Create PDF From Web Page" feature, the image maps are rendered improperly. This file can be viewed at http://www.quantumdynamix.net/clients/image-map-test/ImageMapTest.pdf. To view the outlines of the image maps, please select "Tools" -> "Advanced Editing" -> "Link Tool". You can see the outlines are substantially incorrect.
    Please confirm that other can replicate this problem. Any solution to this issue would be very helpful!

    I tested this in Acrobat X and the exact same issue occurs
    http://www.quantumdynamix.net/clients/image-map-test/ImageMapTest-AcrobatX.pdf
    This has to be considered a legatimate bug, especially since IMAGE MAPS is listes as one of the supported HTML features via the help files

  • Create PDF from Web Page

    I have Acrobat 9 Pro under Wins XP. I am using the "Create PDF from Web Page" feature. I would like to capture only one page out of 36. The capture setting is at its minimum (one level) and the "entire site" box is unchecked. Does Acrobat have the ability to do this? If so, what is the setting.
    Any help is appreciated.
    Jean

    I don't use v9, but what I would do is click the FILE--PRINT option, print to PDF, and enter to print one page (default is first page)

Maybe you are looking for

  • Crystal Report Viewer ActivX Control into an SAP Form

    Hi I need to show an Crystal Report Viewer in a SAP form This code show an blanck from. I know that only ATL activX are supported by SB1, but I don’t have more information about the Crystal ActivX. Dim oFormTST As SAPbouiCOM.Form Dim oCreatP As SAPbo

  • How to get pixel colour?

    Is there any way to get pixel colour from specified point? Example: colour = image.getPixel(x, y); J2ME/MIDP 1.0 Thanks!

  • How to set selection screen field obligatory dymically

    hi expert, i have to make selection screen field obligatory while selecting a check box,i am using the following code can any one help me regards, thanks in advance..... PARAMETER:p_user TYPE adr6-smtp_addr ,           p_check AS CHECKBOX user-comman

  • Airports are creating too many separate networks, how to fix?

    Here's a picture of my current setup.  I have 1 Airport extreme that creates a 2ghz and 5ghz network.  It travels via ethernet to a airtport express 2G that creates  2ghz and 5ghz networks of the same name as the Airport etreme. Within that whole set

  • Persistence Layer.

    Hi All, Currently, the sql query is inside the Business Object in my program. I would like to separate out the query (or persistence part) to a different layer. I need some help in the best way to design this. I like to have a 5 Tier Arch. User Inter