Starnge Fonts displaying in PDF using 10.1.3

While using reader version 10.1.3 on OS Windows 7 the PDF reader is displaying strange characters.
Copying an Pasting the strange font into google produces legible font.
Fonts used in this document are as follows:
Arial
Arial Bold
Helvetica
Printing as Image does not correct this issue. And it will occurr intermittently with the issue clearing up only for a couple of documents.
Please let me know if you need any more information. I appreciate your insights.

Chris,
Thanks for the response. Here are my answers to your questions:
By JSF screens, I assume you mean pages?Sorry, I meant JSF web pages.
Quick question. Are you noticing this just for JSF or with JSP in general?We're only doing JSF development with JDev 10.1.3, so I don't know about the JSP pages.
Do you have an average size of your JSF pages? Are they very large? (hundreds of lines?)No the JSF pages are very small. Once project a developer is working on has 3 pages. The page lines for the three pages are 313 lines, 70 lines, and 85 lines.
Are you using ADF Faces or just the base, RI component libraries (JSF Core,HTML)?We are using ADF Faces.
Have you tried just opening them in the code editor? You can switch to the code editor and from then JDeveloper will remember to open the file in the code editor.We're doing most of the development in the code editor. We don't use the gui layout much. After we drag/drop controls in the structure window we may look at the screen to see what it looks like.
Another thing you can do is turn off the tag execution which renders JSF UI Components in the visual designer.We'll try this and report back.
Thanks

Similar Messages

  • How to display a pdf using outlook

    How to display a pdf using outlook

    You would normally right click on the PDF and select to open it with Acrobat. You have to have Acrobat or Reader installed on the machine.

  • Strange text display in pdf using adobe reader exported by Indesign CS5

    Hi there,
    I have export an interactive pdf from indesign CS5 PC version with version 7 update, and it looks fine in most of the PC and Mac Adobe reader.
    But 2 of the computer had strange text display. One is the iMAC with latest version of Adobe Reader
    <== you can see the text "78" and "454" are abnormal
    But with the same computer using Safari with perview plugin is showing following result:
    <==you can see the text are normal.
    The pdf is embedded with following fonts and property:
    Another Windows XP with Adobe Acrobat 9 will had same display as the iMac.
    I ensure the Windows XP don't have the font installed with HelveticaNeue and the Mac is using OS Lion Bundle with that font.
    Now the customer blame it is the problem of the pdf created by me and I had no idea how to explain to my customer and find out solution.
    I had a trial version of CC but same result and no error during the export.
    Any idea is highly appreciate. The customer hotline and the live chat is hopeless as they send me to this community to ask since I use CS5 not the latest version.
    Regards,
    Ichi

    Thanks Willi,
    I had the fonts of Helvetica Neue bold light etc which created by Adobe and the font was created in 1993,shown in font property.
    my PDF output is set to interactive not the print one. Other settings are default.
    the purpose of this PDF is for user to print out and read on website. The funny thing is print out had no problem at all with HP and Ricoh printer using PCL 6 driver.
    Despite Safari, the strange font happened in only Adobe product, other PDF reader had no problem such as foxit reader, xchange reader.
    I tried to not embed the font but not able to do indesign, search in Google, it said it always embedded. Also that font family is preloaded in Mac OS.
    I can try any test if there is a way to find out the solution.
    or what should I do so the PDF should display correctly in all computer
    thanks a lot.

  • Poor Fonts Display in PDF

    I am trying to figure out if the font display problem I am having has something to do with Fusion 4 (v15.0.5) Acrobat (vCS5.5) or Mac OS X (v10.8.3). I am using an iMac 27 inch.
    When I view fonts in other applications (e.g. InDesign, Photoshop, TextEdit, MSWord, etc.) they look fine at any distance on screen. But when I generate a PDF, either from with the application or via Acrobat Distiller, they look poor on screen at reduced or 100% of size. Sort of jaggedy but not truly jagged. When I zoom in really close the fonts look fine. I am primarily using Open Type and Postscript fonts. But this happens with any fonts. They are embedded and it prints out just fine. When I view any PDF documents downloaded from the Internet, it is the same things. Just the screen display is bad.
    Any ideas how I can resolve this?

    Check what you have set for: Acrobat > Preferences > Page Display > Smooth Text

  • Embedding fonts in exported PDF using CR 8.5

    Post Author: MikeScott
    CA Forum: Exporting
    Hi,
         Does cr8.5 have facility to embed fonts in exported PDF documents?
    I have got font embedding working on one PC but can't get it to work on other client PCs. On the PC where embedding works I have the following dlls:
    crxf_pdf.dll v9.1.1.534
    craxdrt v8.5.0.217
    Any advice appreciated.
    Mike

    LittleNFiesty wrote:
    I have my answer.
    What is it?
    Ken

  • Incorrect font display in pdf document(web view)

    Adobe helpers,
    I am encountering a  very peculiar problem with incorrect display of fonts in pdf documents when viewed in a web browser. Briefly, the problem typically affects  the first page of a pdf document, the font being displayed as an unidentified mix of large and very small, skinny type.  Other pages may or may not be affected, and if one back-clicks to the previous page the text often displays the correct font, so the problem is in some (but not all) cases non-persistent.  The problem however is resolved completely if I uncheck the 'display pdf in browser' option  under edit>preferences in adobe reader. Fonts I use include Arial, Cambria, Franklin Gothic Book, and Garamond; as straight-up pdfs, the documents look fine. FYI, I have Adobe reader X 10.0.1 (Win 7) and 9.0 (Win XP sp3) installed on two different machines. Firefox 3.6 and IE9 are equally at fault. FWIW, all the pdf documents begin life as MS Word or Publisher 2010 documents, which are converted to pdf within these applications before publishing to web.   Since I can't control how people choose to view web pdfs, I'm concerned that display of the prone documents is impaired when viewed in a web browser.
    Not sure if this is a reader, browser, or distiller problem but this seems a logical place to start looking for answers. Any thoughts?
    Thanks!

    I've also had problems printing with Reader X.
    When printing an attachment from an email in Outlook, if I don't open the attachment first, sometimes it doesn't print correctly as everything shows with the following number or letter. Example 12345 will print as "23456" and invoice will show as "jowpjdf". Even if I open the attachment, sometimes it will print the first page ok, but the next pages will "mppl mjlf uijt".
    Never had this problem with previous versions.

  • How to extract Chinese text from font embedded text PDF?

    This is actually font embedded text PDF (Used: type 1 fonts & custom encoding) and not scanned PDF, however I am unable to extract the "Chinese language" text properly and found only the garbled text when "Copy & Paste" (or save as RTF). Kindly refer the sample PDF attached for your reference.
    Kindly advise how could I solve this problem.
    Thanks in advance for your better solution.

    As I was unable to upload the sample page PDF in my original thread, I have shared now in the following path. Kindly look into this and guide me how to extract the chinese text as UNICODE text.
    Downloading: Chinese_Text_Extraction.pdf - Uploadingit

  • Reg : Icon display in PDF

    Hi all
    Im displaying icon in list display.. Its working fine .
    Im just Conveting my list display into  PDF using CONVERT_ABAPSPOOLJOB_2_PDF
    After Converted in to  PDF my  icon is not displaying in that  PDF
    For Exapmle its displaing only ICON-ID like '@02@'  not icon
    How to solve this issue
    kindly help.
    Regards
    sri

    Hi,
    Check the printer settings .
    May be you can use "RSTS_GET_ATTRIBUTES".
    Regards,
    Sandeep

  • Custom fonts not displayed when PDF is generated using 10g Report builder

    Hi
    I have two fonts , abc.ttf and def.ttf which I have placed under C:\Windows\fonts. One of these displays a logo and the other displays barcode
    I have added the environment variable REPORTS_PATH which has value C:\Windows\fonts. I have also added entries for PDF Subset in uifont.ali.
    But still when I run the report and out to a PDF file, the fonts are not displayed. They are remapped to some other fonts.
    When I check PDF document properties in Adobe reader, under fonts tab it says
    abc
       Type:Type1
       Encoding:ANSI
       Actual Font: Adobe Sans MM
       Actual Font Type : Type 1
    def
       Type:Type1
       Encoding:ANSI
       Actual Font: Adobe Sans MM
       Actual Font Type : Type 1
    uifont.ali entries
    [ PDF:Subset ]
    # This example shows how to subset Arial True Type font into the PDF file
    # Arial = "Arial.ttf"
    # The True Type font files must exist in any one of the folders specified in
    # REPORTS_PATH.
    abc= "abc.ttf"
    def="def.ttf"
    In Oracle reports builder, I am able see these fonts and select them in my report layout
    I am able to see the fonts in Preview/screen output while running RDFs in my reports builder, but PDF output doesnt display these fonts
    Is there anything else which is required to do ? Do I need to restart the machine after environment variable is added ?

    In one PC were Report Builder is installed, we see "COURIER NEW - WESTERN" font and the RDF created / saved in that font works fine on server. I don't know if this helps!

  • My PDF uses a font I have installed locally but is using Adobe Sans MM instead

    Hello - I am hoping to contact Adobe directly about this but cannot find a way to do so, so here it goes.
    Our accounting package is creating PDF's that include some text using a special bar code font, Code39-Narrow-F (Code39-Narrow-F.ttf).  We install this font on all computers in the company, and I have confirmed it is installed on my PC.
    I have a statement (pdf) from our accounting package that includes a line giving the total expenses using this bar code font, then under that using a normal font (Helvetica I think) so the total is also human readable.
    In Adobe Reader this font is not being used, even though it is installed.  According to the file properties in Adobe the "Actual font" is Adobe Sans MM.  From what I have read online this is a standard built-in font used when the requested font is not found.  Yet it is installed and actually if I try a few competitor PDF viewing products that font does show up.  I have tried Google Chromes built in PDF reader as well as Foxit Reader and both display the bar code.
    Therefore this seems to be a bug of some kind.  I am testing with Adobe Reader 11.0.06 which I believe is the latest release.
    I would be glad to send this PDF to someone at Adobe to review, including a copy of the font.  The file itself though contains sensitive financial information so I do not want to post that here for the world to read.
    Update: I have found another pdf report from the same accounting system that does show the bar code properly.  Really strange eh?  I can send an Adobe person this file as well for comparison.
    Thank you
    Bruce
    Message was edited by: Bruce Spies

    Most people just read PDF's, and do not create them, and as such have no control over the PDF's they are presented with.  I believe some fonts also require a license to use.
    Adobe and other PDF readers do try and use the local fonts when they are available if it is not embedded.  The issue I have is Foxit and Chrome appear to be more successful at that then Adobe. They appear to have a wider or more liberal font search algorithm than Adobe does.  I would like Adobe to loosen up their font search so their product can be just as successful in displaying PDF's properly as their competitors.
    I took another look at the two PDF's I have and noticed a difference with the fonts.
    The one that works says the font is "Code39NarrowF" (literally like this, case sensitive etc).
    The one that fails says the font is "code39-narrow-f" (again, literally)
    The font itself on my computer is named 'Code39-Narrow-F.ttf,
    In the registry is listed under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts is named "Code39NarrowF (TrueType)"
    I suspect then that the non-Adobe products are figuring out that "code39-narrow-f" is either the name of the TTF file and matching it that way or maybe it does a case insensitive search that does not include the hyphens.

  • Unicode character not displaying when PDF is created using PDFMaker

    Using Adobe Acrobat Pro 9
    Our company letterhead contains a special character (Unicode 25AA "Black Small Square"). When a PDF is created of a Microsoft Word document (2003 or 2007) using the PDFMaker, that character is not displayed in Acrobat (shows as whitespace). Strangely enough, if I search for the character in that PDF file using the Acrobat search function (query "u/25AA"), the search finds the character, but again, it is displayed as whitespace.
    However, if I create a PDF from that same Word document by printing to Adobe PDF, the character displays correctly in Acrobat. Additionally, if I do a SaveAs to PDF (Using the Microsoft plugin), the character displays correctly in Acrobat. This leads me to believe that muy issue is related to the PDFMaker (as opposed to the PDF printing function) and how the character is embedded into the PDF file. I have tried opening the PDF in other versions of Acrobat, but I get the same result.
    Any suggestions? We would like to utilize the convenience of the PDFMaker for our letters and reports, and not have to use the print function. I can email a sample of all the PDF's I spoke of upon request, but the issue should be reproducable using the following steps:
    1. Open MS Word and type (or copy from the Character Map) unicode character 25AA in Arial font.
    2. Save Word file.
    3. Use PDFMaker to create PDF file.
    4. Open PDF file and view results.
    Any guidance or help is appreciated.
    Phil Hinton

    First, check the fonts in the PDF to be sure that they are not embedded (you are likely correct that there is a problem). What job settings are you using. Try the press or print. Also check the job settings to be sure that ALL fonts are to be embedded.
    Also, check the log file of Distiller (set it to not be deleted in the settings). If there is an issue with the license of the font then the font will not be embedded. In that case you need to find a licensed version of the font or change to a different font.

  • Some font changes not displaying in PDF output

    Hello,
    I have Developer 2000 R 2.1 on my workstation and I produced a report from an Oracle table in PDF format. It displays different font weights, styles and colors (black or red) depending on values in a particular column. We have Oracle 8.0.5.2.1 and Reports30.
    The PDF report is perfect when it is displayed through the 'Live Previewer' or displayed using 'PDF' under 'Web Preview'. After I send my 'REPORT.rtf' to the server and compile using 'conv.sh', I get a 'REPORT.rep'. When I try to display the PDF report from a web page, using 'REPORT.rep', the some font changes are missing. No italics, no bold in some instances. It does show 'red', but not in all the correct places.
    What am I doing wrong?
    Thank you very much for any assistance.
    Paul

    Hi,
    the PO Output for Communication does not use the $OA_MEDIA variable so you have to provide the full path to your images, example url:{translate(concat('/d01/oracle/prodcomn/java/oracle/apps/media/',BILL_TO_LOGO),' ','')}
    Hope this helps as it works for us.
    Regards,
    Imtiyaz

  • Urgent: Issue while displaying the PDF Reports Using XDO Common region

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

  • Using IFRAME in JSF to display a PDF file

    2 all,
    How do i display a PDF file inside a JSF page in a IFRAME tag?
    I store the PDF file location (like d:\images\pdf1.pdf) in my database. I cant give this location directly into the src attribute cos then the file will be rendered to only users who have access to that folder (the application is a internet application). IFRAME would be ideal as the display is very very neat (esp for pdf files).
    To get this working i tried the examples given in balusc blogs (on image servlet) but the problem is that my servlet is not getting called. Find below the web.xml and imageDisplay.jsp pages that i tried
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>WorkFlowTool</display-name>
    <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>server</param-value>
    </context-param>
    <filter>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
      <init-param>
       <param-name>maxFileSize</param-name>
       <param-value>20m</param-value>
      </init-param>
    </filter>
    <filter>
      <display-name>SecurityCheckFilter</display-name>
      <filter-name>SecurityCheckFilter</filter-name>
      <filter-class>filters.SecurityCheckFilter</filter-class>
    </filter>
    <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>*.faces</url-pattern>
    </filter-mapping>
    <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
      <filter-name>SecurityCheckFilter</filter-name>
      <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <listener>
      <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
      <servlet-name>Image Servlet</servlet-name>
      <servlet-class>servlets.ImageServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>Image Servlet</servlet-name>
      <url-pattern>/imageServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <session-config>
      <session-timeout>60</session-timeout>
    </session-config>
    <welcome-file-list>
      <welcome-file>/jsp/index.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
      <error-code>500</error-code>
      <location>/jsp/error.jsp</location>
    </error-page>
    <resource-ref>
      <res-ref-name>jdbc/JDDS</res-ref-name>
      <res-type>java.lang.Object</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>
    imageDisplay.jsp
    <HTML>
    <HEAD>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
    <f:loadBundle basename="messages" var="msg" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <LINK rel="stylesheet" type="text/css" href="../theme/Styles.css"
         title="Style">
    </HEAD>
    <body topmargin="0" leftmargin="0">
    <f:view>
         <h:form id="CaseLookUp">
              <h:dataTable value="#{pc_ImageDisplay.dataModel}" var="var">
                   <h:column id="one">
                        <f:facet name="header">
                             <h:outputText value="H1" id="HOne"/>
                        </f:facet>
                        <h:outputText value="#{var.caseID}" id="IDONE"/>
                   </h:column>
                   <h:column id="two">
                        <f:facet name="header">
                             <h:outputText value="H2" id="HTwo"/>
                        </f:facet>
                        <h:graphicImage value="imageServlet?file=#{var.PODocPath}" id="image"/>
                   </h:column>
              </h:dataTable>
         </h:form>
    </f:view>
    </body>
    </HTML>The image servlet is what i got from balusc's site (http://balusc.blogspot.com/2007/04/imageservlet.html).
    I dont know why my servlet is not getting called. Can someone help me with this pls?
    okay let me post the modified code for my image servlet here
    public class ImageServlet extends HttpServlet {
         private static final long serialVersionUID = 1L;
         public void doGet(HttpServletRequest request, HttpServletResponse response) {
            // Define base path somehow. You can define it as init-param of the servlet.
    //        String imageFilePath = "/images";
            // In a Windows environment with the Applicationserver running on the
            // c: volume, the above path is exactly the same as "c:\images".
            // In UNIX, it is just straightforward "/images".
            // If you have stored images in the WebContent of a WAR, for example in the
            // "/WEB-INF/images" folder, then you can retrieve the absolute path by:
            // String imageFilePath = getServletContext().getRealPath("/WEB-INF/images");
            // Get file name from request.
            String imageFileName = request.getParameter("file");
            System.out.println("Inside the image servlet ---->>>> " + imageFileName);
            // Check if file name is supplied to the request.
    //        if (imageFileName != null) {
    //            // Strip "../" and "..\" (avoid directory sniffing by hackers!).
    //            imageFileName = imageFileName.replaceAll("\\.+(\\\\|/)", "");
    //        } else {
    //            // Do your thing if the file name is not supplied to the request.
    //            // Throw an exception, or show default/warning image, or just ignore it.
    //            return;
            // Prepare file object.
            File imageFile = new File(imageFileName);
            // Check if file actually exists in filesystem.
            if (!imageFile.exists()) {
                // Do your thing if the file appears to be non-existing.
                // Throw an exception, or show default/warning image, or just ignore it.
                return;
            // Get content type by filename.
            String contentType = URLConnection.guessContentTypeFromName(imageFileName);
            // Check if file is actually an image (avoid download of other files by hackers!).
            // For all content types, see: http://www.w3schools.com/media/media_mimeref.asp
            if (contentType == null || !contentType.startsWith("image")) {
                // Do your thing if the file appears not being a real image.
                // Throw an exception, or show default/warning image, or just ignore it.
                return;
            // Prepare streams.
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open image file.
                input = new BufferedInputStream(new FileInputStream(imageFile));
                int contentLength = input.available();
                // Init servlet response.
                response.reset();
                response.setContentLength(contentLength);
                response.setContentType(contentType);
                response.setHeader(
                    "Content-disposition", "inline; filename=\"" + imageFileName + "\"");
                output = new BufferedOutputStream(response.getOutputStream());
                // Write file contents to response.
                while (contentLength-- > 0) {
                    output.write(input.read());
                // Finalize task.
                output.flush();
            } catch (IOException e) {
                // Something went wrong?
                e.printStackTrace();
            } finally {
                // Gently close streams.
                if (input != null) {
                    try {
                        input.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                        // This is a serious error. Do more than just printing a trace.
                if (output != null) {
                    try {
                        output.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                        // This is a serious error. Do more than just printing a trace.
        }

    Thanks Balusc!!
    I have made use of your code to display PDF files in an IFRAME tag too!!! I just dint believe that this would be possible. Please just take a look at my JSP page.
    <h:form id="CaseLookUp">
         <%
         String path = request.getContextPath()+"";
         out.print(path);
         %>
    <iframe scrolling="auto" src="<%=path%>/imageServlet?file=D:\70-229 V5.pdf" width="80%" height="600" ></iframe>
         </h:form>

  • Using the transaction launcher to call a BOR method to display a PDF

    Hello gurus,
    I have created a PDF icon and an onclick action to open a pdf, that displays on every row of an assignment block in the actions column, but I do not know the technical process to determine how to get a PDF from the IXOS system from the line selected. (even if I know it depends on an ID attribute of that assignment block) I want to to call a transaction launcher with the url for the pdf in the IXOS that has an ID that identifies which line in the assignment block the user has clicked the pdf icon for (does that make sense?)
    In CRM 4, in the collection factsheet assignment block, the link was coded into an XSLT which is then displayed in the GUI and you would have a clickable link for a pdf file in a row in a table. That link would be as follows:
             <xsl:variable name="ev_key">SAPEVENT:?OBJTYPE=<xsl:value-of select="attributes/OBJTYPE"/>&amp;OBJKEY=<xsl:value-of select="@KEY"/>&amp;LOGSYS=<xsl:value-of select="attributes/LOGSYS"/></xsl:variable>
                 <a href="{$ev_key}"></a>
    This will get the file in IXOS and display it, in CRM 4. In CRM 7, the link is an icon in every line of an assignment block.
    Here are some questions I have now for the functional side in the meantime:
    1) Can we fetch the PDF in IXOS for each line of an assignment block and have it open? If so, how? Transaction launcher, function modules (like ARCHIVOBJECT_DISPLAY) in the OPTA package? (the package for all IXOS related function modules..)
    2) Which URL should I call with the transaction launcher? a URL link to the PDF on the IXOS system?? or sapevent:xxx?
    3) Do we have to configure a transaction in the IMG to be launched with the attributes listed there? Do we have to link it to any classes/ objects?
    4) Do we have to have the code to the logical link dynamically to call the right PDF for each table line? Is it right to put this code in my event handler?? Usually transaction launchers are just in the nav bar.....
    5) Are there any existing examples of this or a similar functionality/ logic that I could refer to, preferably in CRM 7 WebUI?
    6) Do you have any code to just display a PDF in a new window? Or prompt a download?
    One possible way I thought of would be for me to have a logical link defined in the IMG for the transaction launcher, and have the attributes defined for my BOR object that I would call, and pass it different attributes (eg. objtype, objkey, logsys...) and then return the PDF and display it in the UI in a new browser window by itself. (There is a BOR method for my BOR object named  'display_pdf'!!!!)
    What do you think would be the optimal solution here? Does my theory of calling a BOR object with a transaction launcher to display a PDF make ANY sense whatsoever???
    Please do not hesitate to propose any potential solution. Any partial answers/ links to wikis/ other threads, anything would be much appreciated.
    Thank you in advance.
    Best regards,
    Jonathan Laplante
    Edited by: Jonathan Laplante on Jul 2, 2011 4:50 AM

    Hi Any help on this....I am still awaiting the response.
    Requirement: My requirement is to launch the SE38 transaction on WEBUI using transaction luncher tool and set the parameter on the selection screen.
    Issue: The issue is that I am able to lunch the transaction but unable to set the parameter
    Steps Performed:
    I want to list down all the steps I performed to launch an SE38 transaction using transaction launcher on the WEBUI
    1) Defined logical system in tcode CRMS_IC_CROSS_SYS
    -The logical link looks like this
    http://<server>:<port>/sap/bc/gui/sap/its/webgui/!?transaction=IC_LTXE&okcode=ICEXECUTE ?sap-client=300
    2) Defined URL & paratemeter wherein the request method is "GET", opted for NON-BSP URL
    URL link here is
    http://<server>:<port>/sap/bc/gui/sap/its/webgui/!?transaction=SE38&okcode=ONLI
    -Note: My selection screen okcode os ONLI*
    -The logical system ref is provided here
    3) Defined the parameter by giving the screen name like for SE38 selection screen name is "RS38M-PROGRAMM"
    4) Configured the transaction launcher of type B - URL type and provided the reference of the URL ID, choose the relevant parameter from the drop down and have hardcoded the value, cheked the box "Save Data in Activity Clipboard
    5) Added this in the NAvlink/Bus Role etc
    6) Now in the handler class of the TL the code looks like this:
    IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW
    __gdc ?=
    cl_crm_ui_data_context_srv=>get_instance( gv_view_controller ).
    __value
    =
    'ZC_TEST'.
    add_parameter(
       iv_name =
    'RS38M-PROGRAMM'
    iv_value = __value ).
    However, after performing the above steps I am unable to set the parameter. Please suggest where am I missing out on. An early response would really be appreciated.

Maybe you are looking for

  • Multiple copies of display on Tecra A7 (Intel 945GM)

    I am having problems with my Tecra A7 display, using a Mobile Intel 945GM chip. At one point I started getting multiple copies of my desktop on my screen -- two down, two across, with the very top of the fifth and sixth copy coming in on the bottom.

  • How do I move a face from one photo to another  in pse 12?

    How do you move a face from one photo to another in PSE 12?

  • What should I do if my keyboard is not working after updating to new OS Mavericks update?

    I have a 13" MacBook Pro that was purchased in January 2014. Recently I installed the recommended updates for OS Mavericks on my computer. I rebooted the computer as recommended and when I went to login lo and behold my keyboard will not function. No

  • Problem with path and compiling

    I am trying to compile a class where I have and object I created as well. It complains that it cannot find that object (or class in the classpath) and fires this error when I try to compile: Error: csci5433.database.animals.Pets.customerName is decla

  • Images on buttons

    Hi can anyone help me. I am currently using toggle buttons, but i use images as icons for these buttons. My problems is that the whole image does not seem to show on the button, only a part of the image shows. I am guessing it is because the image is