Convert Graphics2D Output to HTML

Hello,
Does anybody know of a library that converts Graphics2D output to HTML text?
Thanks

Hello,
Does anybody know of a library that converts Graphics2D output to HTML text?
Thanks

Similar Messages

  • Smartform output as html

    Hello,
    I want to convert smartform output to html and send the output in an email body. I have followed the blog Sending HTML Email from SAP CRM/ERP and got the output in outlook but its not formatted correctly in other email clients. If any body else had same issues and was able to resolve, please suggest. Also I am trying to convert form spool output to html and send it but I am not able to use LIST_FROM_MEMORY Fm , its not returning the abap list table. So is there a way to convert form spool output to abap list?

    HI friend,
    I am not having the exact solution for your requirement but i think this will help you a bit.
    See this white paper in SND for sending mails in HTML format.
    Link: [Sending mail with HTML attachment|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e009f97e-ee5d-2e10-31ba-9c9509e5925c?QuickLink=index&overridelayout=true]
    I think this will help you. If you have any doubt in that white paper please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Converting Smartforms output content into HTML File

    Hi,
    I have a requirement, Smartforms output contents needs be converted as HTML File and it should be sent as email.
    I am able to get the Smartforms output in html format but the output is shown as binary format.
    After the fm call the job_output_info parameter is holding the smartforms output content in
    job_output_info-XMLOUTPUT[]           (xsf content)
    job_output_info-XMLOUTPUT-STSHEET[]   (css content)
    job_output_info-XMLOUTPUT-TRFRESULT[] (html content)
    Help me out how to handle the job_output_info details to html format.
    Code
    DATA v_fm_name TYPE rs38l_fnam.
    DATA v_tdsfname TYPE tdsfname VALUE 'ZVR39_SF'.
    DATA output_options TYPE ssfcompop.
    DATA job_output_info TYPE ssfcrescl.
    DATA document_output_info TYPE ssfcrespd.
    DATA job_output_options TYPE ssfcresop.
    DATA w_control TYPE ssfctrlop.
    *-Finding the Smartform Layout Name
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = v_tdsfname
      IMPORTING
        fm_name            = v_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    *-Defining the output to HTML Format
    *-Activating XSF Output
    output_options-xdfcmode   = 'X'.
    output_options-xdf        = space.
    output_options-xsfcmode   = 'X'.
    output_options-xsf        = 'X'.
    output_options-xsfoutmode = 'A'. "
    output_options-xsfoutdev  = 'P863'.
    output_options-xsfformat  = 'X'.
    *-Calling the Smartform Layout
    CALL FUNCTION v_fm_name
      EXPORTING
        output_options       = output_options
        user_settings        = 'X'
      IMPORTING
        document_output_info = document_output_info
        job_output_info      = job_output_info
        job_output_options   = job_output_options
      EXCEPTIONS
        formatting_error     = 1
        internal_error       = 2
        send_error           = 3
        user_canceled        = 4
        OTHERS               = 5.
    Giri

    Hi,
    Check this link.In that,I am converting the output of smartform to PDF and then attaching it through mail.
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/smartforms/smartform in abap.pdf

  • Convert ls -l output to html [solved]

    My ISP's webserver which I am using as a repo doesn't allow live dir listings.  In other words, if a user simply browses to the site root in a browser, a message comes up telling them the pages doesn't exist.
    The structure of my site is trivial:
    /i686
    /x86_64
    I'd like a nice script that simply converts the output of an "ls -l" to html with basic click-able links for the files and simply prints the date/time stamp and file size.
    Example:
    file1 Jan 15 16:55 25M
    file2 Jan 15 16:55 25M
    file3 Jan 15 16:55 25M
    I was thinking about something like:
    #!/bin/bash
    date >> /dev/shm/ls.html
    echo "<br>" >> /dev/shm/ls.html
    for i in * ; do
    #echo item: $i
    echo "$i" "<br>" >> /dev/shm/ls.html
    done
    Is there something out there that's pre-made and more visually appealing?  If not, how can I store and parse the output of an ls -lh to the following format (for each item):
    filename datestamp size
    EDIT: From what I'm finding via google, perl is probably the right scripting language (not bash) to accomplish this task.  I know 0 about perl
    Last edited by graysky (2011-01-23 20:43:17)

    GNU stat would work just fine for this. Do not parse ls.
    exec > /path/to/output.html
    printf '<html>\n<head>\n<body>\n<table>\n'
    for file in *; do
    stat "$file" -c '<td>%A</td><td>%U</td><td>%G</td><td>%B</td><td>%y</td><td>%n</td>'
    done
    printf '</table>\n</body>\n</head>\n</html>\n
    This should get you started.
    Last edited by falconindy (2011-01-23 15:11:04)

  • Convert pdf and output to html

    I need help!
    If I have a pdf file and I want to upload to iFS, should I convert it to html or test format and save to database with iFS feature? Or it's better to save as a pdf file and output as html with iFS feature.
    Also, if I a some images in the pdf file, what should I do?
    Thank you so much in advance.
    Hong
    null

    Try to use filterDocumnet() and getFilteredDocument() in oracle.ifs.beans.Document. It helps to generate the PDF into HTML format.
    null

  • Smartforms output in HTML format

    Hi Experts,
    I want to save my smartforms in HTML format.Is there any Standard programe is available for it.
    Like as RSTXPDFT4 for converting output in PDF format.

    Hi,
    Check this link.In that,I am converting the output of smartform to PDF and then attaching it through mail.
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/smartforms/smartform in abap.pdf

  • How to create FrameMaker glossary entries which convert properly to RoboHelp HTML 8?

    I have been having a challenging time creating FrameMaker 9 glossary
    entries which convert properly into RoboHelp HTML 8. Here is the process I'm doing, and perhaps someone call tell me what I'm doing wrong.
    1.) In the FrameMaker document, I highlight a word or phrase which serves as the "glossary term" to be defined.
    2.) I open the Marker dialog box, select the Glossary option, then enter the "glossary definition" for the highlighted "glossary term." I commit the entry.
    3.) In the FrameMaker Book file, I create a new "Index of Markers" (IOM) of "Glossary" type. Upon generation of the IOM, my FrameMaker output is much like a standard index: There are letter delimiters ("A," "B," C," etc.), and under each is the "glossary definition," then a page number where the "glossary term" is.
    4.) Now I go to RoboHelp HTML 8 and update the document there. The glossary displays such that the "glossary term" is the entire paragraph in which the marker had been placed in the FrameMaker source file. The "glossary definition" is displayed properly (the text I placed into the Marker dialog box.
    So, how am I to create auto-generating glossaries? This implies that I need to create a manual glossary whereby the "glossary term" is in a paragraph by itself (much like a printed glossary would look). Furthermore, I would need to add this manual glossary as a file in the FrameMaker Book file for RoboHelp 8 to detect and pull the entries.
    Surely this isn't as how it was designed. I suspect I'm doing something wrong in how I create glossary entries or create the file in the FrameMaker Book file.
    Could someone offer some assistance?
    Thank you very much in advance!
    Most sincerely,
    Sammy Spencer

    It's because you're doing your markers backwards. The text inside your Glossary marker should be the term. The paragraph your marker is inside is the definition.
    I should say, rather, that Robohelp does it backwards, because when I think of glossary terms and definitions, I think there should be a way to highlight a word and provide the definition in the hidden marker, not hide the term inside the marker.
    I am still figuring out how to make a glossary in my Framemaker file that will work with my Robohelp file, and not have Robohelp generate a separate content file for the glossary file. I think I'll get it, though. Eventually.

  • Converting servlets output to PDF fle

    How to convert Java Servlets output html file to PDF file or a Word document.

    not sure what u mean by 'convert' the output to PDF or word document
    Do you mean you want to force the browser to open file using MSWord / PDF viewer? If yes :
    For showing output as a word document, you can set the servlet response MIME type to 'application/ms-word' and set its extension to .rtf . You can then use a RTF template to build servlet output (since RTF is flat file format). By replacing placeholder tags in RTF template, you can generate content.
    For showing output as PDF, you'll need some library for PDF writing.
    hth,
    Subodh

  • PDF output to HTML -  Payment Instruction Register - JAVA Conurrent Program

    Hi All,
    Environment
    Realse 12 EBS on linux.
    Description
    We need to convert few reports to HTML / TEXT output in R12 EBS.
    These are seeded oracle reports which use executable type as JAVA CONCURRENT PROGRAM and the output format of the conurrrent program is PDF. In XML Publisher Administrator the ttemplate attached to this report is *.rtf.
    Problem
    When the output format of the concurrent program is changed to HTML/TEXT the reports executes sucessfully without error but when we click on the View Outpu(B) no output is displayed (Page Cannot be Displayed will be appeared)
    Reports: Payment Instruction Register and Send Seprate Remmitance Advices are the reports that need to be convereted in to HTML/TEXT.
    Please let me know is there any way/ideas to workout.
    Also, I'm was able to extract the XML for this reports and designed new templates and these are working if the output is in PDF only.
    Let Me know if you need any other information.
    Thanks & Reagrds,
    Janu
    Edited by: Janu on Feb 25, 2009 6:51 PM

    Hi Tarmenel,
    No, I don't want a custom report if the seeded report can be displayed as HTML/TEXT output.
    As you said,I know that it is a java concurrent program which gives the XML structure and i Have used the XML to design a new template. But even for the new template i was not able produce the output in HTML / TEXT.
    So the problem is not about extracting the data, but how can i display the output in HTML/TEXT format.
    Thanks for your time.
    Thanks & Regards,
    Janu
    Edited by: Janu on Feb 26, 2009 5:00 PM

  • Adobe Bridge CS6, Output to HTML Gallery coding issue.

    Adobe Bridge CS6, Output to HTML Gallery coding issue.
    I have created the html, JavaScript, css file using the output function in Bridge CS6, which nicely generates the coding, pages, folders and files. I can edit the html files such as gallery title, name, etc., in Dreamweaver CS6 just fine and preview them in a selected browser (both chrome and IE) and everything works fine.
    When I ftp upload the files and directories into my hosting account (Go Daddy), the images do not show up. The file table appears but the thumbs images does not appear and when selected to preview the larger image, it does not appear either. I have not altered the file structure at all. Go Daddy says it is a coding issue, but I cannot fine any errors.
    Have you seen this issue before? All Adobe help research have failed. Any suggestions??

    Have you asked on Go Daddy site for help in uploading Adobe Bridge script?  Just to say it is coding is not helpful. 

  • Convert smartform output in to PDF using CONVERT_OTF function  how to do it

    Hi Anil , and  Hi All
             I am trying to display smartforms output in java webdynpro
             for that i have got the following code in sdn.
               can anybody please clarify these doubts in the  below code
               1) What are the mandatory input and output parameters
                   I have to pass here in this code to my application
               2) please check my previous post also in this regards please
       . Please reply at the very earliest. Check the below code
    Convert smartform output in to PDF using CONVERT_OTF function module and you can write pdf using parameter 'binfile' of this function in WebDynpro using the following code:
    It is copied from my prg. I hope you understand it.
    public void onActionGetQuote(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionGetQuote(ServerEvent)
    wdThis.wdGetOppt_QwriterCustController().executeZquote_Writer_Input();
    String fileName = wdContext.currentZquote_Writer_InputElement().getOrder().toString().trim() + System.currentTimeMillis() + ".pdf";
    String pdfOutput = new String(wdContext.currentOutputElement().getBinfile());
    if (pdfOutput != null)
    try
    String pdfResoucePath = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), fileName);
    FileOutputStream fileOutputStream = new FileOutputStream(new File(pdfResoucePath));
    PrintStream ps = new PrintStream(fileOutputStream);
    ps.print(pdfOutput);
    ps.close();
    //Display the PDF to the browser
    String fileURL = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(), fileName);
    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(fileURL, "Pdf Browser", false);
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.MENU_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.open();
    // To collect all the file created in the server by user
    quoteFiles.add(quoteFiles.size(), pdfResoucePath);
    } catch (Exception e)
    throw new WDRuntimeException(e);
    //@@end

    Hi
        ABAPers prepared a BAPI function module which calls Smart form , how can i execute it from java Webdynpro, so that I can display the smart form in Webdynpro. Pleas reply at the very earliest.  Every answer will be rewarded.
    regards
    jalandhar

  • How to convert the output of Applescript which is in object format to text or string format??

    Hi All,
    I want to convert the output of Applescript which is in object format to string or text format, am running Applescript with Java, I need to display the output of applescript in Eclipse Java Console, since its object format the output is not properly displayed..
    Pls suggest.. I used the below code
    repeat with i in allContents
                if class of i is button then set the end of allStaticText to contents of i
            end repeat
    Applscript ouptput
    {button 1 of window "Player Installer" of application process "Install  Player" of application "System Events", button 2 of window "Player Installer" of application process "Install  Player" of application "System Events", button 3 of window "Player Installer" of application process "Install  Player" of application "System Events", button "Finish" of UI element 1 of scroll area 1 of window "Player Installer" of application process "Install  Player" of application "System Events"}
    Java output
    <NSAppleEventDescriptor: 'obj '{ 'form':'indx', 'want':'butT', 'seld':1, 'from':'obj '{ 'form':'name', 'want':'cwin', 'seld':'utxt'(" Player Installer"), 'from':'obj '{ 'form':'name', 'want':'pcap', 'seld':'utxt'("Install  Player"), 'from':'null'() } } }>

    Here's an improved version of the previous script, where the handler now returns "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"" instead of "button \"2\" of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"":
    tell application "System Events"
        get button 2 of window 1 of process "TextEdit"
        my objectToText(result) --> "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\""
    end tell
    on objectToText(UI_element)
        set theText to ""
        tell application "System Events"
            repeat
                if exists attribute "AXParent" of UI_element then
                    set theParent to value of attribute "AXParent" of UI_element
                    set theClass to class of UI_element
                    if name of UI_element exists then
                        set theName to name of UI_element
                        set theText to theText & (theClass as text) & " \"" & theName & "\" of "
                    else
                        set k to 0
                        get UI elements of theParent whose class is theClass
                        repeat with thisItem in result
                            set k to k + 1
                            if contents of thisItem is UI_element then exit repeat
                        end repeat
                        set theIndex to k
                        set theText to theText & (theClass as text) & " " & theIndex & " of "
                    end if
                    set UI_element to theParent
                else
                    set theClass to class of UI_element
                    set theName to name of UI_element
                    set theText to theText & (theClass as text) & " \"" & theName & "\" of application \"System Events\""
                    exit repeat
                end if
            end repeat
        end tell
        return theText
    end objectToText
    Message was edited by: Pierre L.

  • How can I put an output stream (HTML) from a remote process on my JSF page

    Hello,
    I've a question if someone could help.
    I have a jsf application that need to execute some remote stuff on a different process (it is a SAS application). This remote process produces in output an html table that I want to display in my jsf page.
    So I use a socket SAS class for setting up a server socket in a separate thread. The primary use of this class is to setup a socket listener, submit a command to a remote process (such as SAS) to generate a data stream (such as HTML or graphics) back to the listening socket, and then write the contents of the stream back to the servlet stream.
    Now the problem is that I loose my jsf page at all. I need a suggestion if some one would help, to understand how can I use this html datastream without writing on my Servlet output stream.
    Thank you in advance
    A.
    Just if you want to look at the details .....
    // Create the remote model
    com.sas.sasserver.submit.SubmitInterface si =
    (com.sas.sasserver.submit.SubmitInterface)
    rocf.newInstance(com.sas.sasserver.submit.SubmitInterface.class, connection);
    // Create a work dataset
    String stmt = "data work.foo;input field1 $ field2 $;cards;\na b\nc d\n;run;";
    si.setProgramText(stmt);
    // Setup our socket listener and get the port that it is bound to
    com.sas.servlet.util.SocketListener socket =
    new com.sas.servlet.util.SocketListener();
    int port = socket.setup();
    socket.start();
    // Get the localhost name
    String localhost = (java.net.InetAddress.getLocalHost()).getHostAddress();
    stmt = "filename sock SOCKET '" + localhost + ":" + port + "';";
    si.setProgramText(stmt);
    // Setup the ods options
    stmt = "ods html body=sock style=brick;";
    si.setProgramText(stmt);
    // Print the dataset
    stmt = "proc print data=work.foo;run;";
    si.setProgramText(stmt);
    // Close
    stmt = "ods html close;run;";
    si.setProgramText(stmt);
    // get my output stream
    context = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
    ServletOutputStream out = response.getOutputStream();
    // Write the data from the socket to the response
    socket.write(out);
    // Close the socket listener
    socket.close();

    The system exec function is on the Communication palette. Its for executing system commands. On my Win2K system, the help for FTP is:
    "Ftp
    Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. Click ftp commands in the Related Topics list for a description of available ftp subcommands. This command is available only if the TCP/IP protocol has been installed. Ftp is a service, that, once started, creates a sub-environment in which you can use ftp commands, and from which you can return to the Windows 2000 command prompt by typing the quit subcommand. When the ftp sub-environment is running, it is indicated by the ftp command prompt.
    ftp [-v] [-n] [-i] [-d] [-g]
    [-s:filename] [-a] [-w:windowsize] [computer]
    Parameters
    -v
    Suppresses display of remote server responses.
    -n
    Suppresses autologin upon initial connection.
    -i
    Turns off interactive prompting during multiple file transfers.
    -d
    Enables debugging, displaying all ftp commands passed between the client and server.
    -g
    Disables file name globbing, which permits the use of wildcard characters (* and ?) in local file and path names. (See the glob command in the online Command Reference.)
    -s:filename
    Specifies a text file containing ftp commands; the commands automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
    -a
    Use any local interface when binding data connection.
    -w:windowsize
    Overrides the default transfer buffer size of 4096.
    computer
    Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last paramete
    r on the line."
    I use tftp all of the time to transfer files in a similar manner. Test the transfer from the Windows command line and copy it into a VI. Pass the command line to system exec and wait until it's done.

  • Is it possible to convert PDF file into HTML

    Dear friends
    Is it possible to convert PDF file into HTML. I have few hundread PDF files i like to convert this files into HTML. I hope it can be done through Java but i don't know how to start this coding. anybody can give me a brief idea to go ahead.

    Why do you want to do this yourself? I quick search on Google showed several utilities to do this, some freeware, some commercial.

  • Smartform output in html

    Dear all ,
    I want to take smartform output in html format . the logos are not coming as well as the header template the records are coming in next line not side by side .my code is :
        gs_output_options-xsfcmode  = 'X'.
        gs_output_options-xsf = 'X'.
        gs_output_options-xsfoutmode = 'A'.
        gs_output_options-xsfformat = 'X'.
        xsfparam_line-name  = 'GRAPHICS'.
        xsfparam_line-value = 'EXTRACT'.
        APPEND xsfparam_line TO gs_output_options-xsfpars.
        xsfparam_line-name  = 'GRAPHICS-DIRECTORY'.            
        xsfparam_line-value = c_gr_dir.
        APPEND xsfparam_line TO gs_output_options-xsfpars.
        xsfparam_line-name  = 'CONTENT-ID'.                  
        xsfparam_line-value = 'ENABLE'.                        
        APPEND xsfparam_line TO gs_output_options-xsfpars.
      CALL FUNCTION fm_name
       EXPORTING
         control_parameters = gs_ssfctrlop
         output_options     = gs_output_options
      p_graphics[] = gs_job_output_info-xmloutput-xsfgr[].
      p_html = gs_job_output_info-xmloutput-trfresult
        CONCATENATE 'C:\TEST\TC1_' p_vbeln '.html' INTO p_file.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            BIN_FILESIZE            = html_len
            filename                = p_file
            filetype                = 'BIN'"'ASC'
           trunc_trailing_blanks   = 'X'
          TABLES
            data_tab                = p_html-content
          CALL METHOD cl_gui_frontend_services=>execute
            EXPORTING
              document               = p_file

    This question (logos and html smartform output) has been discussed several times related to email sending.  Try searching the forum.  You may find some relevant info in other posts.  Have you tried reaching the url that's generated for the logo?

Maybe you are looking for

  • No DVD drive in new iMac ???

    So I have just completely upgraded my 15 years of home movies on DVD over the last year. I converted video, old DVDs and used imovie to make great copies for all the family. I just learned that if I get a new imac from Dec 2012, they have no DVD driv

  • Best practice - material staging for production order

    Hi Experts, could any of You pls, support me with some hints of best practice how to handle material staging WM-PP interface in a certain case? Up till now we had a system, where production had no separate location in IM, but one location existed inc

  • Vendor ID not matching purchased book?

    I have changed jobs and got a new laptop. i transferred a text book i had purchased but ADE won't accept my vendor id and password for this book. i am thinking i had a different combo previously when i first purchased the book as i had this text book

  • Making same length text and evenly distributing it

    Hi all, I'm creating a series of posters and I need to have lines of text with single words or phrases of the same length. Obviously the font size would need to change up or down depending on the number of letters per word/phrase that need to be sque

  • SAP Netweaver Audit Management

    Hi Experts, What's the role to get the Netweaver Audit Management in NWBC.? Thanks & Regards, Ankit Mehta