Example font subset with non-unicode output

Hi,
I am searching for an example to use a TTF Font as font subset in PDF but without UTF16 encoding.
Is this even possible?
Something similar to
7 0 obj
<</Type /Font /Subtype /Type0 /BaseFont /AAAAAD+Arial/Encoding /Identity-H /DescendantFonts [9 0 R] /ToUnicode 8 0 R >>
9 0 obj
<</Type /Font /Subtype /CIDFontType2 /BaseFont /AAAAAD+Arial /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> /FontDescriptor 11 0 R /W [...
But how does the rest should look like?
Thank you in advanced

No, this is proceeding from wrong assumptions.
For all single byte fonts, EVERY PDF contruction deals with 256 values, range 0 to 255.
Let's look at what you say. You mention two Unicode values, and you continue to think that Unicode has some importance or meaning in PDF. No, it doesn't. Perhaps your characters are U+0021 and U+FEFC but the PDF does not care, and nor should you (when writing the PDF). I emphasise: if you are thinking "I will put this Unicode value somewhere in the PDF" and you are dealing with page streams/fonts, you are almost certainly not following the spec.
For a single byte font the mapping from the arbitrary codes in the PDF to the internal font structures has one and only one variable: the Encoding value. The Encoding value, if present (and the situations in which it can be omitted are specific and exact), is a shorthand representation for something which will always be an array of 256 names.
Since TrueType fonts don't contain names, the interpretation of this is complicated for embedded TrueType, and you must take care to follow exactly what the spec says. Other things MAY SOMETIMES WORK without being valid, but will probably fail in different software, so stick to the spec exactly.
There is no substitute for endless, deep and repetitive study of the PDF Reference. It will help if you can phrase your future questions in terms of "what does it mean in the specification when it says...". That will help keep you focussed. I have been working with the PDF specification for many, many years and I have found that whenever I assume anything, I am almost always wrong. Read the spec first, second and last.
FInally, don't be discouraged if you find this hard. Font embedding IS one of the very hardest things to master about PDFs, easily adding an order of magnitude of complexity to any project.

Similar Messages

  • Report Script output in UTF-8 code with Non-Unicode Application

    Essbase Nation,
    Report Script output (.txt) file is being coded as UTF-8 when the application is set to Non-unicode. This coding creates a signature character in the first line of the text file, which in turn shows up when we import the file into Microsoft Access. Does anyone know how to change the coding of the output file or know who to remove the UTF-8 signature character.
    Any adive is greatly appreciated.
    Thank you.
    Concerned Admin

    You may be able to find a text editor that can do the conversion. Alternatively, I have converted from one encoding to the another programmatically using Java as well.
    Tim Tow
    Applied OLAP, Inc

  • Unicode Errors - Interface with non-Unicode 3rd party system

    Does anyone have an experience working with an interface between a Unicode SAP system and a non-Unicode 3rd party system? Would appreciate your input on existing data declaration and logic (prior to SAP Unicode conversion), if changes need to be made to the character types and upload/download functions.
    We are doing our testing in a newly converted Unicode system which has interface sending files through SAP Business Connector, and uses TDAccess/COMM-PRESS to encrypt the payment file.
    We are getting an COMM-PRESS error that it's not able to get the private key
    ERR=>RC=107#Error building signature segment (S1A/S2A) ERR=>#Error getting private key: #PUBLIC KEY FINGERPRINT = , rc = 524
    The issue seems to be that the passphrase is not received correctly in COMM-PRESS (codepage 1100) from Unicode SAP (codepage 4102). The passphrase is uploaded from a text file (codepage 1100?) to T_PPLOC and then to W_PPLOC.
    TYPES: BEGIN OF T_PPLOC,
             FLINE(64) TYPE C,
           END OF T_PPLOC.
    DATA: W_PPLOC(64)  TYPE C
    CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            FILENAME                = W_FILENAME
            FILETYPE                = 'BIN'
          TABLES
            DATA_TAB                = T_PPLOC
        LOOP AT T_PPLOC.
          IF W_PPLOC IS INITIAL.
            MOVE T_PPLOC-FLINE TO W_PPLOC.
          ELSE.
            CONCATENATE W_PPLOC T_PPLOC-FLINE INTO W_PPLOC.
          ENDIF.
        ENDLOOP.
    Comparing the results between a Unicode and non-Unicode system, the uploaded passphrase is different because of the codepage. But even if I convert the passphrase first from 1100 to 4102 codepage, it still fails.

    Hi,
    Try this by sending value to the CODEPAGE parameter of the function module GUI_UPLOAD.
    aRs

  • RFC destination definition with non-unicode external program

    Hello All,
    we have one issue with our RFID system connecting to WM system (SWD). 
    For most functions, external RFID server/middleware makes RFC call to SAP system.  Means, from outside system to inside SAP.  This seems to be working fine.
    But in one case, SAP needs to print label to RFID printer.  In this case, SAP is calling external RFID server/middleware using RFC destination.  Means, from inside SAP to outside system.  This is failing.
    We think this has something to do with ECC60 being unicode system, and the RFC destination setup.  We define rfc destination "ZRFID_SSI" in SM59.  We define it same way as in as-is SSI 4.6B production system.  But in SWD ECC60 system, SM59 has more options.  We define as 'non-unicode' because target RFID server/middleware is non-unicode Windows server.  RFC destination is actually working ok.
    To send label to printer, SWD calls function ZFSSIRF202 with remote destination ZRFID_SSI.   Listener on RFID server/middleware will respond to function call.  This also seems to be working.  But then, RFID server/middleware cannot process the data from ZFSSIRF202, log says that data is "0".  (Actually, the first time SWD calls, log says 0 data, the 2nd time there is connection failure, the 3rd time it is 0 data, 4th time connection failure, etc, etc.)
    Compared with production environment, everything is the same, except that SAP is unicode system.  So, our suspicion is, that when ECC60 system sends data, it is encoded somewhat a little different than when SAP 46B system sends data.  I have similar experience with our other interface (XSI), also involving RFC desintion, but XML file exchange.  Here, ECC60 is encoding XML file with UTF-16, but SAP46B was encoding with UTF-8.
    Anyone know how to help ?

    Hi Jeongbae,
    as of NW 7.0 EhP2, it is possible to directly set the code page in SM59.
    In earlier releases, this is not possible.
    In general, SAP systems use the logon language (SY-LANGU)  to determine the code page, if this is available.
    Please check SAP note 788239.
    Please also have a look at SAP note 991572 for possible alternative settings, if SY-LANGU is not available.
    In addition I would recommend to have a look at SAP note 1021459.
    However in order to analyze the problem properly, you need to know the exact short dump text (via rfc trace).
    For XML processing, please read SAP note 1017101. UTF-16 should NOT be used in an XML file !
    Best regards,
    Nils Buerckel
    SAP AG

  • Mixing Unicode with non-unicode

    Hi, Wwe have ECC 6.0 and BI 7.0 running on Windows 2003 and Oracle 10.2.0.4 all on non-unicode
    We are about to install another BI 7.0 landscape.
    If I install this new BI 7.0 on unicode, should I expect issues when communicating between systems such as BI loads?
    Thanks.

    BI-Java are in the works for 2009, so, I will need to convert my first BW instance to unicode... ouch, that part was not planned. so, I guess I will have a lot of work in 2009.
    Technically it might work with a non-Unicode backend but you never know...
    If your BI system is a single codepage system the UC conversion is not that big. The tools are meanwhile so good you shouldn´t have any big issues. Make sure you are on the latest BASIS support package, this will help a lot.
    so, I will install the new BI landscape using unicode, that will save me from converting this system later.
    yes - definitely.
    And if the connected ERP (or CRM or whatever) backend is only single codepaged there won´t be any problems when you exchange data.
    Markus

  • [SOLVED]How do I deal with non-unicode filenames inside archives?

    I often get archives from Japanese Windows users with file names encoded in one of the myriad of Japanese character sets. Windows is pretty good about converting the filename to unicode before passing it on to any program or computer that expects it. However, it won't touch the filenames of things inside the archive for obvious reasons. Any way to make, say, unzip or 7z convert the filenames to unicode as they're extracted? At the moment I run Windows in Virtualbox and connect back to a shared folder and let Windows do the unzipping.
    Last edited by DJQuiteFriendly (2011-09-22 22:13:26)

    I don't know if there's any advancement WRT this, but there's a work-around here (under "UnZip Locale Issues" ) using convmv.

  • Can't display non-unicode font

    When I try to use Symbol font and display it in JLabel, it show a square.
    i have read the article written by John O'Conner
    http://www.joconner.com/javai18n/articles/TextDisplay.htm.
    Thanks for providing those valuable information. it does help to understand some international issue.
    however, I am not sure if it apply to Symbol font such as Wingdings, webdings.
        Font fontPalatino = new Font( "Palatino LinoType", Font.PLAIN, 25); //unicode font
        Font fontMapInfo = new Font( "MapInfo Transportation", Font.PLAIN, 25); // non-unicode font
        Font fontWingdings  = new Font( "Wingdings", Font.PLAIN, 25);
              // use integer number and convert into equivalent character
              // e.g. if i is 65 then c is A.
              // notes: 65 is a decimal value converted from hex 0041 value
              int i = 65;
              char c = (char)i;
              System.out.println( new Character(c).toString() );
              JLabel jlbl = new JLabel();
              jlbl.setFont(fontSymbol);
              jlbl.setText( new Character(c).toString() );1) I can't display any Wingdings font , any expert can help on this?
    2) what is the difference between 0021(character code for Arial font) and 0x21(character code for Wingdings font) shown in character map?

    When I try to use Symbol font and display it in
    JLabel, it show a square.
    i have read the article written by John O'Conner
    http://www.joconner.com/javai18n/articles/TextDisplay.htm.
    Much of that article is now incorrect or unnecessary for JDK 1.5. Because 1.5 knows how to find a font for the character you're trying to display, you should be able to set your label font to any logical font, and the JRE should find a substitute font if necessary that can display the character.
    I'll give your code a try and will post results...is the code you've posted the code I should actually experiment with? It seems like you should want to display something different than 0x0065.
    Your other questions:
    0x0021 is the exclamation mark regardless of font. I see what you mean, however, since the wingdings font in charmap also says 0x0021. However, that mapping is obviously not a Unicode code point mapping.
    I looked in the Misc. Symbols and Dingbats section of Uncode. A few characters might be a reasonable substitution for the pencil character you want:
    0x270E (LOWER RIGHT PENCIL)
    0x270F (PENCIL)
    0x2710 (UPPER RIGHT PENCIL)
    I didn't see any mirror images of these, ie LOWER LEFT PENCIL and UPPER LEFT PENCIL, although I admit that I didn't look closely.
    Maybe one of these will work for you instead of the Wingdings 0x21 character you mentioned.
    Regards,
    John O'Conner

  • Khmer Unicode 2.0 font conflict with Adobe suite

    I just downloaded Khmer Unicode 2.0.  After I did, the Microsoft Word doc that supplied a Khmer translation read correctly.  When I tried to copy and paste the Khmer into any Adobe apps (I tried 3, so have concluded it will be true of all) the font moved the letters around, deleted vowels, and generally messed up the phrases.  It did it the same way every time I tried new things.
    I even tried copying the font into the Adobe FONT folder, and that didn't make any difference.  What could be creating this problem... I need to resolve it right away since I am trying to finish a project by the end of today.
    I have 3 files to send someone, but don't see an option to attach them here
    I am using Windows XP and Adobe Suite CS3
    I just found this:
    you should already know the answer to this. btw it's not just khmer, it's any
    unicode encoded text.
    first the usual suspects: what db driver? 100% sure you're using the correct dsn?
    then this caught my eye: SET khmerReadWriteTest ='#form.text#'
    uh either use cfqueryparam (good practice besides you turned on unicode in the
    dsn anyway) or unicode hinting.:
    SET khmerReadWriteTest=N'#form.text#'
    But I have no idea where you do any of this.... Help please!

    Is there a Windows machine on the network? It might be a conflict with non-Unicode symbols fonts used by them.

  • Unicode vs. Non-Unicode with MI

    Hi all,
    We are looking at doing an installation of MI. We are currently Non-Unicode on our ERP system, although a Unicode conversion project is not too far away.
    According to the document: "How To Design a SAP NetWeaver Based System Landscape" (NW 7.0, ver 1, March 2008) on pg 15, it says:
    "It is required that an MI system with AS ABAP has the same Unicode type as the MI back-end system: If your MI back-end system is a Unicode system, also install a Unicode MI system (that is, both AS ABAP and AS Java on Unicode); if your MI back-end system is non-Unicode, install an MI system with non-Unicode AS ABAP (that is, AS Java on Unicode and AS ABAP on non-Unicode).
    Recommendation
    For new installations, it is recommended to install a Unicode based system for all SAP applications and SAP NetWeaver deployments that require an AS ABAP usage type based system (AS JAVA is only available in Unicode). In future all new installations from SAP will be Unicode only."
    This is clearly conflicting...We are an English-only shop, we have a Unicode conversion imminent, and SAP's direction is clearly Unicode.
    Should we even consider a Non-Unicode install?
    Thanks,
    Troy

    Hi,
    install a unicode middleware system for the following reasons:
    - Soon the BE will be unicode enabled.
    - The MI client is anyway unicode enabled, this means the end users can enter unicode characters anyway. After Unicode conversion of the backend your MI server would be the only non unicode component.
    - having the mw as unicode does not harm, even if the BE is non unicode (apart from the bigger DB size due to the code page)
    Best Regards,THomas

  • Bug with use of TRn and nX editting in formatting and non advancing output

    Hello.
    I am using non-advancing output to print data values in columns in tables. Where a column doesn't have values
    I use the TRn editor to skip over the column field. However, this doesn't work with non advancing output.
    e.g., the following code doesn't work properly. The output is missing the 10 spaces between the data items.
    (I tried changing TR10 to 10X and that didn't work either).
    a = 1.0
    b = 2.0
    ! Write data
    write(10,'(F10.4)',advance="no") a
    ! Skip 10 places
    write(10,'(TR10)',advance="no")
    ! Write data
    write(10,'(F10.4)',advance="no") b
    This works fine on all my other compilers, just not the one that comes with oracle studio 12.2.
    Edited by: davidb on 16-Oct-2011 15:06

    My original post wasn't too clear (sorry). The bug is with TR.
    The following code should write the numbers 1 to 10 with four spaces separating each value. But no spaces are written.
    program tst2
    integer :: i
    do i=1,10
    write(10,'(I4)',advance='no')i
    write(10,'(TR4)',advance='no')
    end do
    close(10)
    end program tst2
    In fact the file fort.10 which is produced contains
    12345678910
    Whereas, with gfortran, open64, ifort, nag Fortran compilers I get (there are four spaces, this forum just doesn't show them all):
    1 2 3 4 5 6 7 8 9 10
    Edited by: davidb on 16-Oct-2011 15:07

  • Non-unicode program support?

    Hi, I'm new to mac. In Windows' international setting, I can select a language to use for non-unicode programs, so that non-unicode characters in the selected language (such as song tags) can be displayed properly. But in Leopard, I cannot find the equivalent setting. Some songs with non-unicode tags are not displayed properly in iTunes, although they are fine in iTunes on my Windows computers. Also, I have some non-unicode contact information in Palm Desktop synchronized from my Treo phone. It looks OK in Palm Desktop on Windows, but not on Leopard.
    Does such setting exist in mac os x?
    Thank you.

    Does such setting exist in mac os x?
    No, OS X only uses Unicode, so you have to convert the legacy character set stuff to that.
    Of course some apps, like TextEdit and Safari and Mail, can read things in legacy charsets, but they convert it to Unicode when they do. TextEdit can also save things in legacy charsets.

  • Choosing unicode and non-unicode option in SAP Netweaver Mobile 7.1

    Hi folks,
    do we have the option of choosing a unicode or non-unicode format on installing SAP Netweaver mobile 7.1?
    Can we communicate MI unicode system with non-unicode backend?
    Let me know on where i can find more info related to this
    Regards,
    Kalyan

    Hi Ankur,
    you can also directly navigate to the mobile administrator using the web browser. The url is as follows:
    http://host:port/sap/bc/webdynpro/sap/sdoe_administration?sap-language=EN
    Host and port you have to adjust to your settings. These are the same settings you are using during synchronization on a client device.
    Regards,
    Stefan

  • Non-Unicode Support Post NetWeaver 2004s

    Hi everyone,
    Our site runs an existing non-unicode environment, and are aware that we can definetly upgrade our existing environments to NetWeaver 2004s (Basis 7.0).
    However will SAP provide future upgrade kits for later releases of SAP (eg Basis 8.x and higher) for non-unicode environments.
    Cheers
    Shaun

    Thanks Matt and Eddy for your replies.
    I had already read the "blog" Matt, and Eddy I have spent a heap of time in the service market place reading everything thats available on unicode including oss notes.
    However here is a snippit from the blog the Matt directed me too:
    ========================================================
    2. This change only really effects NEW installations of SAP NetWeaver and SAP applications based on SAP NetWeaver that were previously available with non-Unicode installation options.
    3. Existing installations of SAP NetWeaver and SAP applications based on SAP NetWeaver that were based on single code pages can be upgraded to the new releases WITHOUT having to convert to Unicode. This is really cool as it protects your existing investments and you can live in the non Unicode world for a <b>little longer</b>.
    ========================================================
    Note on "3." that is says at the end there "for a little longer". ... how long?  too what release?
    From what I have read so far it sounds like anything above NetWeaver Application Server 7.0 will require a unicode conversion.
    Any comments??
    Ideally I would like someone to just give me a yes/no answer.
    Cheers
    Shaun

  • New Application server on existing Non-Unicode CI

    Hello all,
    We upgraded our BW 3.5 system to BW 7 ehp 1 late last year; due to the need for increased capacity we want to add an application server.  The BW 7 system is Non-Unicode (NUC), and in SAPINST GUI I do not see any options for a NUC installation.  I found a Note stating this fact, "all new installations will be Unicode by default".
    So my question is, what are my options here?   A UC conversion project is not an option at this time.  We have a couple of projects that require no BW down time for the next 2 months.  However, at the completion of those two projects is when the extra capacity is needed; so I don't have a window to conduct the conversion.
    Thanks in advance,
    Jose

    >  "all new installations will be Unicode by default".
    >
    > So my question is, what are my options here?   A UC conversion project is not an option at this time. 
    Since the start of BW 7.0 all installations are Unicode-only and all upgrades have to do a Unicode conversion. The reason is the fact, that BW 7.0 makes heavy use of Java which is not supported with non-Unicode backend systems:
    Note 975768 - Deprecation of Java features with non-Unicode Backend
    Note 838402 - Problems within non-Unicode system landscapes
    So before installing new unsupported system landscapes I can just highly recommend (not to say 'urge' you) to convert your current BW system to Unicode. With a good preparation this can be done on a weekend - or less.
    Markus

  • Oralce 11g compatiablity for Non-Unicode.

    Hi,
    At present we are using Oracle 10.2.0.2.0 database for SAP Product, EhP4 for ERP 6.0.
    It is a non-Unicode system.
    It will be helpful to know whether SAP supports 11g with Non-Unicode systems during database upgrade and after upgrade.
    Are there any dependencies with respect to Support package level for database upgrade from 10g?
    Regards,
    D S Kumar

    > It is a non-Unicode system.
    > It will be helpful to know whether SAP supports 11g with Non-Unicode systems during database upgrade and after upgrade.
    > Are there any dependencies with respect to Support package level for database upgrade from 10g?
    Check
    Note 1398634 - Oracle database 11g: Integration in SAP environment
    Note 1478350 - Oracle 11g Support on UNIX: 7.0/7.01-Based SAP Systems
    and read the database upgrade guides (http://service.sap.com/instguides --> Database Upgrades  --> Oracle)
    Markus

Maybe you are looking for