When exporting UTF-8 encoded HTML page to PDF, Foreign characters won't display correctly.

I'm not sure if this is a PDF issue or a PHP issue, I have tried asking this in several forums with no working result, and I hope this is the right place to post this question... if not please let me know of another forum.
here's my PHP code.
$test_label = 'の契約';
$result = html_entity_decode($test_label, ENT_QUOTES, 'UTF-8')
PDF_show_xy($pdf, $result.": ".$order_date , SECTION_START_X+TEXT_LEFT_PADDING, 750+((SECTION_TITLE_BOX_HEIGHT-5)/2));
the UTF-8 encryption is correct, because the web browser displays all the characters correctly.
Problem:
Problem occurs when I try to export the HTML into PDF.
All I'm getting in my pdf export is a bunch of gibberish. Is there a PDF add-on/plug-in that I'm suppose to install? or is my encoding function called incorrectly wrong.

oh, sorry if I was unclear.
I use PHP's PDF functions to create PDF files that looks like my html page.
here are the functions
http://us2.php.net/manual/en/ref.pdf.php
anyway my question is, if there is a setting or a addon/plug-in/third party program that I have to download for Adobe Reader to display foreign language?
and if anyone knows PHP, am I using the correct decoding function?
If I'm on the wrong forum, can anyone direct me to the correct one?
I can't seem to find any resources on exporting HTML pages with foreign characters to PDF using php.

Similar Messages

  • NEED HELP! How do I export UTF-8 encoded HTML to PDF?

    Right now my HTLM to output is in Japanese, and encoded in UTF-8 format.
    I tried to use html_entity_decode(), however that does not work, all I get are a bunch of weird characters.
    If anyone have any experience with exporting UTF-8 encoded HTML in Japanese or any foreign glyph-like language to PDF, please help me on this.

    Ellis home wrote:
    In File/Document Setup do you have bleed set to 0?
    Yeah.
    [Jongware] wrote:
    What are 'the obvious export settings'? You are looking at these as well?
    Right. Export > Marks and Bleeds. (I was posting from my phone and couldn't check InDesign to see what it was called.) Those are my settings, at any rate.
    With its default settings, there are no 'blue' bleed lines. You may have changed its color (this can be done in Preferences), or you may mistake the default Purple of margins for blue, or you may mistake any empty frame for 'bleed' (as the default 'new layer' color is blue). Or maybe someone did draw a blue frame to act as 'Bleed' -- but calling it that is not going to work. InDesign can only use its own kind of Bleed, the one you set up in Page Size, that displays outside of the Document Page, and that you can switch off in the PDF Export dialog
    Sorry, I was wrong about about the colour, too. I need it to be cropped to the line I have circled in red - it's the innermost border.

  • How to I get on to page 2 when my document stops at the page 1 layout line and won't go on to another page?

    How to I get on to page 2 when my document stops at the page 1 layout line and won't go on to another page?

    Sounds like you are using a Layout template. These you have to manually link from textbox to textbox.
    Try using a Word Processing template, it lists them in the sidebar of the Template Chooser.
    Peter

  • Problem when i put swf into html page

    Hi, My swf is working:
    http://dianecollins.com/sean_movieclip.swf
    But, when I put it into an html page, it doesn't work.
    http://dianecollins.com/sean/
    I'm looking at the contact button on the top right - on the
    swf it slides over to the left when you rollover, but on the html
    page, it doesn't work.
    Any suggestions?
    Thanks!

    simpler remedy:
    http://activecontent.blogspot.com
    "coldMiner" <[email protected]> wrote in
    message
    news:eessog$gu0$[email protected]..
    > on ie you have to click to activate flash.
    >
    > remedy:
    >
    http://blog.deconcept.com/swfobject/

  • Element 3D errors when exporting to Media Encoder

    Hi there,
    Again apologies in advance for the beginner's question.
    When exporting to Adobe Media Encoder for rendering, I get unresolvable errors from Video Copilot's Element 3D. Not really sure where to start to fix it...
    Thanks!
    Angela

    Sorry about that. Yes, it's probably a hardware problem. Here's my system:
    win 8, 64 bit
    2GB RAM
    intel core 2 duo processor
    graphics card nvidia GeForce GT 240
    Since I configured the PC for gaming, it's probably safe to assume that it's not quite up to par for animations...
    Good to know that the Quicktime>AME is a viable workaround. I'd been doing that but just wondered if there was any way I could skip a step.
    Thanks!
    Angela

  • Problem with interlacing when exporting with Media Encoder CS 5.5

    It seems that when exporting a Video with interlacing in Premiere 5.5 with Media Encoder 5.5, the exported video is still interlaced although it is rendered with progressive settings. When rendering with the same settings through Premiere 5.5 without Media Encoder 5.5 (Button "Export") it is correct and progressive.
    I tried this with H264 and MPEG2. Anyone experiencing this problem too?
    Thanx!

    Were the field interpretted correctly in the first place?  Even if you think they are, try reversing them.  I've just been through hell doing something similar with a mishmash of client material from around the world.
    In some instances I switched field order (In the File>Modify) although it didn't seem logical.  In others, I used AE CS5.5 to added the Reduce Interlace Flicker filter.

  • CS3 exporting drop outs and red screen flashes when exporting via Media Encoder

    Hi forum
    I have been using Premiere Pro CS3 for a long time on my dual core PC with no issues.  Suddenly, I am now getting a major issue i MUST get sorted asap for a client is waiting for the final video.
    It is a HDV (1080i, 25fps) project/timeline.  An 8 minute video has been put together in this and every time I try to export as either MPEG2 (Blu Ray) or WMV, I am getting pixelation in certain places usually around certain cuts, or horrible red blocky pixels filling up the screen for a second or two. They seem to come always at the same point.  They don't happen when i render the timeline or show up when playing the edit itself in the timeline - just when i playback the exported video in premiere or in Windows Media Player.
    To try a workaround I exported the whole video as high quality MPEG2 (blu ray - 30mbps), which I brought into a new sequence, then I exported small sections where this problem was happening as Uncompressed Microsoft AVI and called them "patch 1", "patch 2" etc. and brought them back in and overlayed over where the problems were occuring.  The short Uncompressed AVI patches seem to have exported with no glitches, so theoretically I thought I had a clean good timeline in my new sequence made up of the MPEG 2 video overlayed in the dodgy places with uncompressed AVI "patches".  However, trying to export a new MPEG 2 master from this has created the same problems, in the same places!!! Still drop outs and still those horrid red flashes filling the screen.  Not always as bad, and some places where there were problems are ok, but I am still left with most of the problems still there.
    I am now trying to export the whole video as an AVI uncompessed but dont know if this will work and will take a very long time.
    I do have Saphire plugins, but they are not being used in this new sequence so therefore could that be a possible problem?  I thought perhaps it was the brightness/contrast filter etc so removed that from some of the problem areas, and it helped on some of them, but not on others, so not sure its anything to do with my plug in or filters.
    Any help would be greatly appreciated.
    thanks, James

    This topic is about a year old, but I thought I would reply because I just experienced this problem very recently and stumbled upon an easy solution.
    Problem: When using Adobe Media Encoder to create an HD or .m2v video file, a bright red screen will flash followed by a mashup of red blocks/pixels somewhere within the file you've just encoded. This phenomenon lasts for exactly 10 frames before clearing up.  Most likely, you won't see this problem until you import the encoded file into Adobe Encore.  It shows up on the timeline, the preview monitor and the DVD itself. It occurs on edits that the system reads as being corrupt or when a flash bulb goes off from a still camera.  Both instances make the encoding process go haywire.
    Solution: Encode your HD or .m2v file with CBR (1-pass) bitrate encoding rather than VBR (2-pass).  Don't worry about losing any quality in your video or creating unnecessarily large file sizes with your new renders. I guarantee you won't see much of a difference, if any.  I can't explain why this solution works.  It just does.
    Hope this helps you as much as it did me.

  • Run a function in flash when click a button on HTML page

    dear friends,
    i have loaded my swf in an html/ aspx page. when i click a button in html page, i want to pause my swf movie. Actually swf has another movie clip i want to stop that. any option pls help me. possible send me some sample coadings.. i tried with externalInterface but no result..
    or if i click a button in html page, i want to run a function existing in loaded swf....
    thanks in advance...
    Thanks and Regards,
    Syed Abdul Rahim

    Dear Mr.ned,
    Greetings! i tried to put the id also, still its not working.. any ideas? find below my codings:
    flash code:
    import flash.external.ExternalInterface;
    ExternalInterface.addCallback("methodName", method );
    function method() {
        mytxt.text = "call from java script";
        trace("called from javascript");
    HTML code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>jscr_rd</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#ffffff">
    <p>
      <!--url's used in the movie-->
      <!--text used in the movie-->
      <!--
    <p align="left"></p>
    -->
      <!-- saved from url=(0013)about:internet -->
      </script>
      <script language="javascript" type="text" >
    function methodName() {
       jscr_rd.method();
       window.alert("hi.. u clicked me?");
    </script>
      <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','widt h','550','height','400','id','jscr_rd','align','middle','src','jscr_rd','quality','high',' bgcolor','#ffffff','name','jscr_rd','allowscriptaccess','sameDomain','allowfullscreen','fa lse','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','jscr_rd' ); //end AC code
    </script>
      <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="jscr_rd" align="middle">
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="allowFullScreen" value="false" />
          <param name="movie" value="jscr_rd.swf" />
          <param name="quality" value="high" />
          <param name="bgcolor" value="#ffffff" />   
          <embed src="jscr_rd.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="jscr_rd" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />   
      </object>
      </noscript>
    </p>
    <form name="form1" method="post" action="">
    <input name="but" type="button" value="click me" onClick="methodName()">
    </form>
    <p> </p>
    </body>
    </html>
    pls check advice me
    Thanks and Regards,
    Syed Abdul Rahim

  • When my swf in a html page connected with a socket server other http requests were blocked, how to resolve?

    I have used php to write a socket server(text chat server),
    then I use xmlsocket to write a client, I put this swf file in my html page, erverything of this client swf were ok: ervery clients could send or receive messages, but the other http request in this html page was unable to send(or receive) data from webserver,
    webserver and chat server were on the same server,
    and I have tried to use socket to instead if xmlsocket in my flash, but the new swf can only work in flash cs3, but it couldn't work in html page as the chat server can't send the security xml file to this swf, and I have also use Security.loadPolicyFile("http://192.168.139.128/crossdomain.xml"); to load security file, but it took none effect.
    Is there anyone can suggest me ?
    That's very kind of you!

    Hi Franco,
    Yes, I solved that by reinstalling Java 6 Update 21.
    There are three versions for Solaris namely, SPARC, x64 and x86. Our platform is SPARC and I think System admin has installed the wrong version instead of installing SPARC version of Java.
    After installing SPARC version of Java this got resolved. And I confirmed everything is fine by running a small program as below. You can run this program from command line using the -d64 flag. If the installation is wrong you will get the same exception as I mentioned.
    public class Analyzer {
          public static void main(String args[]) throws Exception{
               InputStream fin = new FileInputStream(args[0]);
               int iSize = fin.available();
               byte mvIn[] = new byte[iSize];
               fin.read(mvIn,0,iSize);
               fin.close();
               String strText = new String(mvIn);
               PrintStream fout = new PrintStream(new FileOutputStream(args[0]+".csv"));
               fout.println("Before,After,Seconds");
               Pattern p = Pattern.compile("\\[(?:Full |)GC (\\d*)K->(\\d*)K\\(\\d*K\\), ([\\d.]*) secs\\]");
               Matcher m = p.matcher(strText);
               while(m.find()){
                    fout.println(m.group(1)+ "," + m.group(2) + "," + m.group(3));
               fout.close();
    }Hope this helps.
    Regards,
    Prabhu

  • Print JSP/HTML Pages (perhaps PDF?)

    Hi,
    i have a table in HTML generated by JSP.
    Just like the following simple example:
    ...<table>
    <%
    for( Enumeration et = free.getSqlIDs().elements(); et.hasMoreElements();)
    String keyt = (String)et.nextElement();
    Bean b = new Bean();
    b.init(path,DB);
    b.setID(keyt);
    b.restore();
    %>
    <tr>
    <td>
    <%out.print(b.getName());%>
    </td>
    <td>
    <%out.print(b.getAdress());%>
    </td>
    </tr>
    %>
    </table>...
    No i want to give a button to the user. When pressed, the HTML-Page should transform to PDF.
    With such a method i want to print the HTML-Page.
    I Know that this is possible with the help of XML/XSP and a stylesheet. But i like to do that with this way:JavaBeans-->JSP-->HTML-->PDF
    Anyone a solution, some code examples for me?
    Or perhaps another solution to print HTML-Pages in a fine design?
    Thank you for your help
    Andy

    Hi,
    no one any idea?
    How do you print Jsp Pages?
    Thank you
    Bye
    Andy

  • InDesign cs6 crashes when exporting objects with drop shadows to interactive PDF

    I am using the trial version of InDesign CS6 on a mac OSX 10.7.4  I need to export my document as an interactive PDF. I have found that the export works fine so long as none of the objects within my document have a drop shadow. However, if I add a drop shadow to any object (text, images, or video) InDesign will crash when I try to export. I am adding the drop shadow by selecting the object and then choosing Object > Effects > Drop Shadow. Is there another method I should be using to add the shadow if I want to export to an Interactive PDF?

    Hi Peter, thanks for the response. Yes, I have tried creating a new blank project and adding one text object with a drop shadow and then exporting to Interactive PDF, and I experienced  the same result. I tried replacing my preferences as you suggested and found that it did not have any affect.
    I continued developing my InDesign document without using any drop shadows and began to experience the same type of crashing under two more circumstances. 1. When relinking assets in my Links panel. 2. When exporting to interactive PDF with interactive objects that are being clipped (I get a warning telling me I have clipped objects before I export; when I click export I experience the same crash.) I have tried exporting the same file to a print (non-interactive) PDF and experienced no crashing.
    I thought I should mention that I am using a retina display mac book pro with 16GB RAM. Could my graphics cards or the configureation of my machine be causing my issue?
    Thanks so much,

  • Is it allowed to convert html pages to pdf:s on a webserver?

    Hi,
    I read a web discussion some where on the web there  somebody claimed it was not allowed to generate pdf files of html pages on a webserver. Is this correct?
    If it is allowed my followup question is how you do it with C# and any of the Acrobat libs?
    Best regards

    Thank you for the quick response.
    Too bad I can't use Acrobat on a webserver. Among other things I had my hopes on using the full Adobe suits I bought earlier for this.
    How do I proceed in that case?
    Many sites that I shop at send me their invoice/receipt as a pdf and I think it is a greate feature/service they have there. Do you happen to know how they do (software that's used and so on) then they generate their pdf:s?
    Best regards

  • Intents wrong when exporting from or importing to Pages for iPad

    Anytime I create a document on the iPad and export it for e-mail the indents are messed up when I open them with Pages on the Mac. The same thing happens in reverse direction too. Does anyone have a solution for this or is this a known issue?

    It was the major reason I went with an iPad over a Windows based laptop. Portability and word processing. Unfortunately the "cross platform" issue with exported PDF's render the iPad useless as a business tool in that way.
    It's a shame really but I don't need a $800 toy, I need business tool.
    If this singular issue got any attention and were fixed it would greatly increase the viability of the iPad as that tool but at this stage, it clearly is just a larger iPod touch.
    How professional is it to have no cross platform functionality in a word processor. I'v actually found the program itself quite handy and very powerfull for a mobile WP app.
    Or I could just pre-qulify all the businesses I do business with and ask if they use an OSX platform or Win based but that would really kill my business.

  • Serious error when Exporting to Media Encoder Premier Pro CS4

    Hi I have a 64 bit HP7900 16 GB memory and Vista Home premium edition
    I have taken the automatic upgrades and it has completely screwed over my Premier Pro CS4 making it unusable.
    I decided to co back to version 4 and installed everything again.
    Now I cant export to Media Encodet.
    All my driver are up to date and I am using scratch disks.
    Error message enclose.
    My business is now shout down can anyone please urgently help me
    Thanks
    Nick

    A number of people have been bitten by an update bug. When updating to 4.1 some have been reverted to trial status, losing all MPEG capabilities. Mostly this is caused by having had a trial version earlier or a faulty installation to start with. The only workable solution is to completely uninstall, run the Clean Script utility 2 or 3 times, reinstall and then reapply the updates. Cumbersome and time consuming, but the only solution.
    Look in the Adobe KB for info on the Clean Script CS4 utility.

  • How to avoid header and footer parts while printing a html page to pdf ?

    Am trying to convert a page from a web site and trying to printing it. i see the file  root folder , destination  and location of the page (file:// D|/file_name/filename001/][time stamp]) at the bottom of the pdf is there any option to disable this ?

    File :: Create :: PDF from Web Page
    In the dialog that presents - click the "Settings" button.
    In the dialog that presents - untick "Place headers and footers on new page"
    Be well...

Maybe you are looking for

  • Imac doesn't recognise administrator

    Just installed OSX Leopard on an Imac G5. Now it won't connect to the printer or allow any more software updates

  • How Database chooses the proper Secondary index

    Hello All,           Can any one tell me how database find the proper secondary index, in my case database is taking the wrong index leading to performance problem.. Please help Regards. Anmol

  • Preview won't open tiff file

    The scanner part of our Xerox printer/copier/scanner produces a tiff file that can not be opened by Preview (it does on Windows); does someone know a work-around for this, preferably a free and small conversion program (GraphicConverter does the job

  • What are the conversion rules

    what are the conversion rules?can anybody give information on that?points wil be rewarded?

  • Mac version of LiveCycle Designer?

    I'm sorry, I know this has been asked before but I can't find a straight answer. Is there a Mac version of LiveCycle Designer? Our office is upgrading to CS5 Design Premium. If we buy the Mac version, will we get LiveCycle Designer? (bundled with Acr