Markup not displaying Doc/docx/PDF properly

Hey everyone,
I'm using Oracle text in conjunction with Apex, all on top of the 11G database. My issue is that using the Oracle text Markup, many files types do not display properly. The level of wrongness varies, from some readable text to complete gibberish. This happens to all version of PDFs, Docs, and Docx files. A sample of what appears is below:
Æ
@à°€P ðÀ!dðgd£n=gd8h²„h^„hgd8h²^
&F
Æ
p@à°€P ðÀ!dðEÆ€^ZfFG·ðgd÷i+
&F„˜þ`„˜þgd÷i+
&F
Æ
pà°€P ðÀ!dðgdýOôHN”³´ÔÕûý     "#f‘ðáÕáÁ²Õ² Ž|n]L²8-h£n=h£n=CJaJ&h£n=h÷i+6B*CJ\]aJph h8h²h÷i+5B*CJaJph h£n=h÷i+5B*CJaJphh£n=5B*CJaJph#h£n=h£n=5>*B*CJaJph#h£n=h÷i+5>*B*CJaJph#h8h²h÷i+5>*B*CJaJphh8h²h÷i+B*CJaJph&h8h²h÷i+6B*CJ\]aJphh£n=B*CJaJphh£n=h÷i+B*CJaJphh£n=h£n=B*CJaJph´üý#â„_B
&F
However, using a simple .txt file, the result is nearly perfect and everything is complete readable.
create or replace PROCEDURE test
     (p_id      IN VARCHAR2,
       p_query   IN VARCHAR2)
    AS
      v_clob         CLOB;
      v_read_amount INTEGER := 32767;
      v_read_offset INTEGER := 1;
      v_buffer      VARCHAR2 (32767);
    BEGIN
        htp.p('<b>HTML version with highlighted terms</b>');
     CTX_DOC.MARKUP
       (index_name => 'DOCUMENTS_INDEX',
         textkey    => p_id,
         text_query => p_query,
         restab     => v_clob,
         starttag   => '<i><font color=red>',
         endtag     => '</font></i>');
     LOOP
        BEGIN
            dbms_lob.read(v_clob,v_read_amount,v_read_offset,v_buffer);
            htp.p(v_buffer);
            v_read_offset := v_read_offset + v_read_amount;
            v_read_amount := 32767;
        EXCEPTION
          WHEN NO_DATA_FOUND THEN EXIT;
        END;
     END LOOP;
   END test;The above is the procedure I'm using if that helps. If anyone has ideas about what's going wrong, I'd greatly appreciate it.

Well, I figured this one out on my own. I had been using a multi-column datastore, and it turns out that you have to turn on auto-filtering for each column you add. Once I had done this and rebuilt my index, my markup was much more accurate and readable. Hopefully this can help out anyone else going through this issue.

Similar Messages

  • Netbeans Issue: Servlet do not display Chinese UTF-8 properly

    Netbeans Issue: Servlet do not display Chinese UTF-8 properly
    Java Version: JDK1.5.0_01, JRE1.5.0_01 (International version)
    Netbeans Version: Netbeans IDE 4.0
    OS: Windows XP Personal Edition
    Dear Sirs,
    First at all thanks for reading this post. I am having the following issue. I am creating an application using html pages and servlets. I am using Chinese and English languages on them (html encoding UTF-8).
    I created a project in Netbeans and added an idex.html screen reporting to a servlet. Both index.html and in the servlet generated html page contains the line:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    Additional, I setup the character code settings in Netbeans:
    (tools-options-Java sources-Expert-default encoding=UTF-8
    When I run the project, index.html displays itself perfectly, with the Chinese characters displayed properly. The problem comes when the html created servlet is displayed, which instead of the Chinese characters some strange characters are displayed (�� instead of Chinese).
    I have tried different encodings from http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html without any luck. I also setup the encoding of the file itself (using right click-properties in the project menu of Netbeans).
    Also, when I am editing the servlet, the characters are displayed properly. I type them directly without any issue, but then the display is wrong at runtime.
    Also, just in case this have something to do with the problem, my PC was bought in US, therefore the default character set is not Chinese. I had to install the Chinese typing stuff later on. But like I said earlier, the html page is displayed properly, so I really think is some problem with Netbeans.
    After a week trying to find a solution, I decided to post it here in the hopes that someone will show me the way of the light.
    Thanks in advance for any ideas or help provided
    Aral.

    Hi, thanks for your help. However I think the problem his more complex than it seems. Here is my doPost method (the important parts anyway):
    response.setCharacterEncoding("UTF-8"); //Not necessary because the next line should take care of it, but anyways...
    response.setContentType("text/html; charset=UTF-8; pageEncoding=UTF-8");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head>");
    out.println("<meta http-equiv='Content-Language' content='en-us'>");
    out.println("<meta http-equiv='Content-Type' content='text/html; charset=utf-8; pageEncoding=utf-8'>"); //Again not necessary line, but anyways
    out.println("<title>Servlet</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("this is a test &#20320;&#22909; this is a test");
    out.println("</body>");
    out.println("</html>");
    out.close();
    This servlet is called from a html file. Also, when I load this in the browser, I right click on the screen and I can see that UTF-8 is setup allright. Doing some detective job I found that:
    - If the editor displays the characters perfectly and...
    - Other html pages (no servlets) in the same application can display chinese characters well and...
    - I have configured the encoding as UTF-8 in the servlet properties and in general properties and...
    - The file "web.xml" contains the encoding UTF-8 in its first line then...
    ...my only guess is that something goes wrong during the building of the project itself (ant?). Unfortunately I have no idea about configuring ant to that level, but I began to think that the problem may be there, during the compilation...
    Any ideas?
    Once more, thanks for any help or advice provided.
    Aral.

  • Converion of Doc,Docx,pdf,odt to Html

    Hi,
    I have a requirement like conversion of  Doc,Docx,pdf,odt to Html  without any lose of format ,then storing html content into database.
    can any one suggest is there any open source tool for achieving this.
    it is very urgent please reply as soon as possible.

    Hi
    Rajesh,
    #Convert Docx to HTML: 
    Using  PowerTools for Open XML just released a new HtmlConverter module that contains an open source.
    For more details, please refer to the following link.
    http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2014/01/30/transform-docx-to-html-css-with-high-fidelity-using-powertools-for-open-xml.aspx
    #Convert Pdf to HTML: 
    c# converting pdf to html [closed]
    #Convert Odt to HTML: 
    Convert ODT to HTML Command Line
    By the way, If you need to be able to perform operations like find and copy/pasting text. I would suggest converting the document to a .pdf, and displaying it inline, in whichever standard pdf viewer the client machine has installed.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Safari not displaying some web pages properly why?

    I have been finding of late that safari does not display certain web pages properly. i.e.: text overlaps other text  and is not formatted properly. This seems to have become more common lately. Even Apple's own apple info page does not display properly. Could this be a setting in safari that I have messed up somehow?

    Go step by step and test.
    1. Delete Cookies
        Safari > Preferences > Privacy > Cookies and other website data:
        Click the “Details” button.
        Remove all cookies except from Apple, your internet service provider and banks.
    2. Safari > Preferences > Extensions
        Turn off Extensions if any and launch Safari again to test.
        Turn on those one by one and test.
    3. Delete Caches.db
        Close all windows and quit all applications.
        Hold "option" key down and click "Go" menu in the Finder menu bar.
        Select "Library" from the dropdown.
        Library > Caches > com.apple.Safari > Caches.db
        Right click the Caches.db file and select "Move To Trash.
        Close windows and relaunch Safari.
    4. Empty Caches
        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        Develop menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    5. Temporarily  turn off  Safari iCloud sync and test.
         System Preferences > iCloud
         Uncheck the box beside “Safari” and test.

  • How to read doc/docx/pdf/jpg files in objective-c?

    Hi am new to  objective-c,here want to read the files from the directory i know how to read the text file but what i need is to read the doc/docx/pdf/jpg files to read,i don't know how to read these files in objective-c if anyone knows about this please help me,
    thanks in advance.

    The same way. You will get a load of binary idata, and you have to handle that yourself. .. What, are you expecting libraries to read and somehow convert a .docx document to your taste? You need to look up what 'file format' means.
    (Oh alright, there /may/ be a standardized way in OS X to read a jpg and convert it into something OS X can use without you having to know the specifics.)

  • Reader X does not display drawing in PDF generated with LaTeX

    I have a quite large PDF generated by pdfTeX, Version 3.1415926-1.40.11 which contains also XY-pic drawings rendered with Xy-pic version 3.8.2, PDF driver v.1.4.
    One drawing does not display correctly in Adobe Reader X. Neither on Windows, neither on Mac. It does display correctly with following programs:
    Preview on Mac OS X 10.5 and 10.6
    Adobe Reader 9.x
    Skim (skim-app.sf.net).
    When I open this document with Adobe Reader X I get following error message when I hit page 58:
    "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem".
    Where does one report rendering problems?
    Damjan

    See [https://support.mozilla.com/en-US/kb/Opening%20PDF%20files%20within%20Firefox Opening PDF files within Firefox]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Firefox not displaying fonts and sizes properly

    In firefox the fonts are not displaying properly they are either bold or small and bold some text is displayed normally but most is not most is either really small or bold. This is also the case for IE, im on windows 7 running latest versions. However Chrome, Opera and Safari all display correct fonts and sizes it is just firefox and IE that are affected. And yes everything from font size to page size is at default so please dont reply with zoom in and out thanks.

    Hey thanks for the reply. Not sure which one of these worked nothing changed until I restarted firefox.
    You can try different default fonts.
    Tools > Options > Content : Fonts & Colors > Advanced
    [ ] "Allow pages to choose their own fonts, instead of my selections above"
    You can also try to disable hardware acceleration.
    Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    But it is back to how it was thank you very much!

  • Why a field with javascript formula is not displaying result on .pdf form

    I have created a .pdf form from an exel file.
    I have assigned java script formula such as
    if (QtyRow1 > 0) { QtyRow1, €UPRow1;}else{€TotalPriceRow1="";}
    Problem is, result is not displayed on form.
    What should I do?
    J'ai créer un formulaire en format .pdf depuis un fichier exel.
    J'ai assigné une formule dans le script de calcul personnalisé:
    if (QtyRow1 > 0) { QtyRow1, €UPRow1;}else{€TotalPriceRow1="";}
    Mon problème est que le résultat ne s'affiche pas sur la forme.
    Que dois-je faire pour remédier à ce problème?
    Merci

    The idea behind the formula might be correct, but you can't just invent
    your own syntax and expect it to work...
    On Thu, Jan 29, 2015 at 9:06 PM, christophef13812813 <

  • BI Publisher Java API not displaying Barcode in PDF Report

    Hi Team,
    I have used BI Publisher java API in my ADF Application to generate PDF reports. It is not displaying barcodes in the PDF Reports. I have included Code 39 ttf file in my java home as well. Please let me know if any other configuration needs to be done.
    I am using jdev version 11.1.2.0.0. Please help me out if anyone knows the solution to this problem.
    Thanks in advance,
    Kavitha

    {forum:id=245} is the BIP forum.

  • Firefox not displaying web page icons properly unless in safe-mode

    Hi. We are developing a website at the moment and unless I have FF in safe-mode some of the icons do not display properly. All other browsers work fine and it used to display in FF with no issues. The website is www.livingonmars.com and the icons are the 2 arrows in the top right hand corner of the slideshow. When in safe-mode I see both of the arrows. When started in normal mode I see the bottom half of the left arrow and the top half of the right arrow.

    In safe mode, hardware acceleration and add-ons are disabled. You may want to try to disable you add-ons one by one to see if that helps or you can disable hardware acceleration by performing the below:
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]

  • FireFox is not displaying our VPN page properly.

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/979608 /questions/979608]''
    Dear, fire fox is not displaying our company VPN page properly. Please help me in this regards. However internet explorer properly displays that page. I can send you more details if required by you.
    Regards,
    Salman Khalid.
    HBL, Pakistan.

    Is there content missing or does it only show differently?
    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/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: 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

  • Firefox will not display my photo website properly nor play the music from it on my new computer. I have 2 other PCs and it works fine on those.

    Just set up a new PC and downloaded Firefox. It will not display my Zenfolio Photo website correctly nor will it play the music that accompanies the main page slideshow. I have 2 other PCs and it works fine on them. All are Windows 7 Home Premium.

    Note that there is nothing wrong with setting Flash to "Ask to Activate" and click the Lego block icon on the Navigation Toolbar to activate the Flash plugin when needed.
    You can verify on the Adobe Flash Players Test Page that the Flash plugin is working and which version you have once you have installed the plugin and checked the setting in "Firefox/Tools > Add-ons > Plugins"
    * http://www.adobe.com/software/flash/about/

  • LinearGradient Not displayed in this pdf .

    This pdf was Converted from Emf file ,the Gradient not preserve in this pdf,only the end color preserve,I dont know why the startcolor not presrverd in pdf.Help me please
    [MODERATOR: PDF source code replaced with image]

    I have - several times. All I can tell you is that the URL you provided
    does not have a file at the end of it, but I can see all the other files
    in that directory.
    So either you gave the wrong URL, or there's some sort of permissioning
    problem that is not allowing me to see it.
    Before we worry about the file, however - is this a custom report
    plug-in? If not, then the issue is moot, this is the wrong forum to
    discuss.
    DCorlette
    DCorlette's Profile: http://forums.novell.com/member.php?userid=4437
    View this thread: http://forums.novell.com/showthread.php?t=420190

  • Some Cyrillic fonts not displaying in Preview PDF

    Hi,
    Times New Roman (and potentially other fonts) are not displaying in Cyrillic for me. Arial and other fonts work fine.
    When I copy the blank-appearing section into Word, I can see the text.
    Has anyone else had this issue?

    I have some doubts that your problem is really the same as the big 10.6.7 one being reported, e.g.
    https://discussions.apple.com/thread/2792142?tstart=0
    but you never know.
    You might want to check with your agency to see if they are doing anything different on their end.

  • Can not open doc,docx, and Xls files, on server 2008, office 2010,

    on small Business 2008 server, there is office 2010,
    open doc, docx file  i got file conversion massage,
    so i cannot open any Word and Excel file

    Could you open those Office file on another machine? If no, repair you source file first.
    Do you install any other application in this SBS 2008 server, like it also is a DC role?
    Repair/reinstall Office from Control panel to check the result as well.
    Tony Chen
    TechNet Community Support

Maybe you are looking for