PDWordFinder and PDETextGetText ,  How to get font, color... ?

I use 2 methods to develop a plugin<br />1. PDWordFinder to extract text(Japanese & Chinese character), I can extract the text, but I donnot know how to get the text format information.<br />2. PDETextGetText to GetText, I know I can get format information, but I cannot extract the correct character, the text I extracted are all unreadable character?<br /><br />How should I do, Please give me some hints, Thank you.<br /><br />Method PDWordFinder=============<br />          PDWordFinderConfigRec pConfig;<br />          memset(&pConfig,0,sizeof(PDWordFinderConfigRec));<br />          pConfig.recSize = sizeof(PDWordFinderConfigRec);<br />          pConfig.ignoreCharGaps = true;<br />          pConfig.ignoreLineGaps = true;<br />          pConfig.noAnnots = true;<br />          pConfig.noEncodingGuess = true;<br /><br />          //Create a PDWordFinder object<br />          PDWordFinder pdWordFinder = PDDocCreateWordFinderEx(currentPDDoc, WF_LATEST_VERSION, false, &pConfig);<br />          //Create a callback function<br />          PDWordProc wordProc = NULL;<br />          wordProc= ASCallbackCreateProto(PDWordProc, &wordEnumerator);<br />          //Extract and display words<br />          PDWordFinderEnumWords(pdWordFinder, pageNumber-1, wordProc, NULL);<br />          PDWordFinderDestroy(pdWordFinder);<br />=================================================<br /><br />PDETextGetText===================================<br />          //     //     if(PDEObjectGetType((PDEObject)pdEle)==kPDEText)<br />          //     //     {<br />          //     //          int numRuns=PDETextGetNumRuns((PDEText)pdEle);<br /><br />          //     //          ASInt32 blen;<br />          //     //          for(int currentRun=0;currentRun<numRuns;currentRun++)<br />          //     //          {<br />          //     //               blen=PDETextGetText((PDEText)pdEle,kPDETextRun,curren tRun,NULL);<br />          //     //               ASUns8* ch = new ASUns8[blen];<br />          //     //               PDETextGetText((PDEText)pdEle,kPDETextRun,currentRun, ch);<br />          //     //               char* str = ((char *)ch);<br /><br />          //     //               AVAlertNote(str);<br />          //     //          }<br />          //     //     }<br />=================================================

In most cases a swatch contains definitions of a colour in a non-separation colour space, such as a CMYK. In this case the name does not become part of the PDF.
Only if it is a separation colour space does the name become part of the PDF (since it is, by definition, what the colour is - the name of the ink). DeviceN colour spaces also contain named colours.

Similar Messages

  • How to get default color of a selected row in a JLIst

    I have a JList that I am changing the font color for based on a certian situation so I created my own MyCellRenderer to do this. However, when I select an item in the list the row is no longer highlighted. I used the isSelected method to determine if a row was selected and then change the background color of that row. However, I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that color. How do I obtain what that color is? I found an example where you can get the default color for the background of a button and use that color so I would guess it is something similar to that. My code is below so I hope someone can tell me how to get that color that I want.
    Thanks...Chris
    class MyCellRenderer extends JLabel implements ListCellRenderer {
         public MyCellRenderer() {
              setOpaque(true);
         public Component getListCellRendererComponent(
             JList list,
             Object value,
             int index,
             boolean isSelected,
             boolean cellHasFocus)
             int index1 = value.toString().indexOf("-");
               String errors = value.toString().substring(index1 + 1, index1 + 6).trim();
             int numErrors = Integer.parseInt(errors);
               if (numErrors > 0)
                      setForeground(Color.red);
                      setBackground(Color.white);          
             else
                  setBackground(Color.white);
                  setForeground(Color.black);
             if(isSelected)
                  //ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("JButton.background");
                  ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("Button.background");
                  setBackground(col);
             setText(value.toString());
             return this;
    }

    Swing related questions should be posted in the Swing forum.
    I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that colorlist.getSelectionBackground();

  • How to get background color of controls ?

    Hello everyone.
    How to get background color of controls ?
    When we use AWT/Swing,
    we can get background color of component by using Component.getBackground()
    It is regret that I can not find any method for such a method in JavaFX.
    And how do we detect the change of background color of controls ?
    Best regards.

    Hi Tadashi,
    try this.
    @Override
    public void start(final Stage primaryStage) {
        primaryStage.setTitle("Test ChangeListener");
        Button btn = new Button();
        btn.setText("change background");
        btn.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                primaryStage.getScene().setFill(Color.rgb(
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255)));
        StackPane root = new StackPane();
        root.getChildren().add(btn);
        primaryStage.setScene(new Scene(root, 300, 250));
        primaryStage.getScene().fillProperty().addListener(new ChangeListener<Paint>() {
            @Override
            public void changed(ObservableValue<? extends Paint> arg0, Paint arg1, Paint arg2) {
                System.out.println(
                        "old color: " + arg1.toString()
                        + ", new color: " + arg2.toString());
        btn.getOnAction().handle(null);
        primaryStage.show();
    }Peter

  • How to get that colorful 'ls' output dmz keeps on showing us

    A lot of people keeps on sending me emails and asking how I get ls to look like this:
    So I figured I'd write this down so I can direct them here instead. :-)
    First of - I've made my LS_COLORS (dircolors, really) configuration public. It contains about 300 different filetypes as of this writing. It's grouped by ... uh, group. Music files, video, pictures, text documents etc. Follow the link for more information and installation instructions.
    Second, I use ls++ - colorized ls on steroids. It can colorize files matching PATTERN, thus allowing you to also differentiate files missing an extension. It also calculates the relative mtimes - see the above screenshot.
    See ls++(3) and ls++.conf(3) after installation for more information.
    Last edited by dmz (2011-07-16 14:55:01)

    Stalafin wrote:As I see it, ls++ by default acts more like $ ls -lh. Are you planning to extend ls++ to the full functionality of ls?
    It's more like ls -hAlv --group-directories-first --time=ctime --time-style=+%s . :-)
    I wont make any attempt to include every possible combination of ls options - if there's something special you're missing I can look at it though.
    Stalafin wrote:Also, the default color you use for your terms is #121212 (for instance the background of the terms you took the screenshots of)? I am using #1e1e1e and especially the timestamp of files that haven't been changed for a long time are hardly visible :-( .
    If you fire up  man ls++.conf you'll see what numbers corresponds to what element; for example, color index 4 is used for 'day'. So change the value of $c[4] in the config to any color you'd like.
    Stalafin wrote:And on another note: I checked your Xresources: what is the definition the definition of all colors from 0 to 255 good for? Isn't one usually defining only 16?
    Normally, yes. But I'm not too happy with the default colors, so I've changed some of them.
    See colorcoke and my urxvt fork for more information.

  • I cannot see my Iphone 4 in my device window in the finder anymore.  It use to appear so I could copy the camera pictures off of it and transfer them to other folders.  Does anyone have and idea how to get it back when you plug it in initially.  Thanks

    I cannot see my Iphone 4 in my device window in the finder anymore.  It use to appear so I could copy the camera pictures off of it and transfer them to other folders.  Does anyone have and idea how to get it back when you plug it in initially.  Thanks

    You will want to open iPhoto, go to the iPhoto menu and select Preferences. Under the General tab, next to Connecting camera opens: select iPhoto. Close the preferences and quit iPhoto. Reconnect your iPhone 4. iPhoto should open automatically and offer to import your pictures. Import them and then do what you want with them.
    Best of luck.

  • When unlocked iphone 4 i lost all contacts and pictures how to get it back

    when unlocked iphone 4 i lost all contacts and pictures how to get it back?

    Please define "unlocked iphone 4". It is not clear what, exactly, you did or how it would have affected anything.

  • My mac mini will randomly freeze up and my scrren will get multi-colored rectangle boxes

    my mac mini will randomly freeze up and my scrren will get multi-colored rectangle boxes all across the screen. the only option i have left to do is reboot my whole system by the power button. has anyone ever encountered this problem?

    The two most highly recomended RAM suppliers here in the ASC,
    are > OWC macsales.com and > Crucial.com

  • HT4061 last night I stole my ipad and not how to get the serial number I have the itunes account that I do

    last night I stole my ipad and not how to get the serial number I have the itunes account that I do

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
    Reporting a lost or stolen Apple product
    What-To-Do-When-Iphone-Is-Stolen
    Lost or Stolen iPhone? Here’s What to do.
    6 Ways to Track and Recover Your Lost/Stolen iPhone
    Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
    Find My iPhone
    Setup your iDevice on MobileMe
    OS X Lion- About Find My Mac
    How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
    VUWER 1.5.4
    Sneaky ******* 0.2.0
    Undercover 4.7
    LoJack for Laptops Premium Mac
    STEM 2.1

  • We need to buy Adobe Framemaker version 11. The distributor is only able to provide us with version 12. Can someone suggest me how is it possible to get the license for ver 11 serial  key after purchasing ver 12 and also how to get the download details ?

    We need to buy Adobe Framemaker version 11. The distributor is only able to provide us with version 12. Can someone suggest me how is it possible to get the license for ver 11 serial  key after purchasing ver 12 and also how to get the download details ?   Urgent response will be helpful.D

    Adobe Support helped us with a similar query. We ended up with exactly what you need.

  • Lost Developer Edition theme color when I ran sync and restarted, how to get it back?

    I started using Firefox Developer Edition and I turned on sync so I can sync with current version of Firefox I have been using until now. The sync worked fine but when I restarted Firefox, the developer edition came up with the look of the non developer edition version of Firefox. I went in the customize setting and turned on "Use Firefox Developer Edition Theme" and it changed everything but the color. Instead of being the default black that it was originally installed with, now uses the default greyish tan color that is the default of the non developer version. How do I get look of the Firefox Developer Edition back to it's default look?

    There are also a few choices for lightweight theme (Persona) via the Themes button in the Customize palette window.

  • I upgraded to IOS7 om my phone and want to change my font color, but cannot see how to do this

    I upgraded to IOS7 and now in notes I cannot change the font color, is there away to do this. I am a little fusterrated with IOS7. Just changed it over a couple of days ago.

    Settings > General > Accessibility ...
    Then choose something like "Increase Contrast" or "Larger Type".

  • WLC AireOS 8.0 - how to set font-color for integrated webauth/weblogin?

    Hello,
    up to AireOS 7.6 I was able to set the font-color of the internal webauth/weblogin page using html-codes, for example like this:
    Headline: Welcome to our <font color="red">guest</font>-network!
    Message: You need a valid <font color="blue">user</font> to login.
    Now with AireOS 8.0 this doesn't work anymore. When I try to set a headline or message with font-tags I get "Error while setting headline." (or "...message.") when I hit apply. I have to remove the font-tag to save the weblogin page.
    #CLIWEB-6-CLIWEB_INVALID_HTML_TAGS_USED: [PA] cli_web_api.c:1748 The Customization message field has invalid html tags
    #CLIWEB-6-CLIWEB_INVALID_HTML_TAGS_USED: [PA] cli_web_api.c:1663 The Headline field has invalid html tags
    So, how can we now set different font colors/styles like in previous releases? Using external or uploading selfmade pages is not an option.
    Thanks,
    Chris

    Since your using code to change the default internal portal page look, its better for you just to create a custom webauth and upload that to the WLC.  That is how I do my implementations as its easier for me to create a new page than trying to mess around with the internal page.  As you can see, Cisco can change the way things work in every version.  It might just be the fact that they no longer are allowing html code to be inserted in the default webauth/passthrough page.
    Scott

  • How to get background color in MVC programming

    Hi Experts,
    I am new to BSP.
    I am working in CRM 7.0 version and designing a view using MVC method in BSP.
    I have two doubts::
    1. How can i get background color in a view ?
    2. How can i attach a picture, that is in paint-brush, in background ?
    Thanks in Advance.
    Nitin Karamchandani.
    Edited by: Nitin Karamchandani on Jun 3, 2009 8:10 AM

    Hi,
    several html tags have the attribute bgcolor, like
    <body bgcolor="red">  or <body bgcolor="RRGGBB">  where RR, GG, BB is an hexadecimal value according to RGB color palette.
    you can also work with CSS and in this case you affect the attribute style, which is also available in several tags:
    document.body.style.backgroundColor="#EEEEEE"

  • How to get similar color for objects in different pictures

    how do you get similar color for objects in different pictures
    I have a prodject that i'm working on and i need to edit several images at once (preferabley) so that they are the same color. They are wooden cupboards and i need all the wood looking the same colour. In light room you can edit a group of images at the same time hence the colours are the same . Is this possible in Elements ? If so how do i do this ?
    I have tried duplicating layers and it just replaces the whole image, it seems to work using levels layers but not the other layers ... I have 30 more images to do and would ideally not like to adjust all the images manually ? I dont mind doing minor tweaks. Essentially all the images where taken with the same camera and lighting and lens's ...
    Screen shot is where I'm at at the moment...
    I have posted this question else where but was told to repost  - this is a link to my previous post as to where we got to
    http://forums.adobe.com/message/4720576#4720576

    You could try using the raw converter. Open one file and edit it (File>Open, pick the image and choose Camera Raw as the format before you click Open). Then open the next image and click the little four-lined square on the upper right side of the ACR window and choose Previous Conversion from the flyout menu.

  • In Earthlink WebMail when inserting an email address or weblink, the text no longer turns blue and underlines, and I can't change font colors. IE Works.

    Whenever I try to insert an email address or a link to a website, I no longer get the automatic hyperlink (turning blue and underlining). Also if I try to change the font color on some text it either doesn't change from black or it changes to a different color. (If I try to change to red, I get dark green; change to a bright green, I get dark red; change to blue or yellow, I get black).
    I tried removing and reinstalling Firefox to no avail. Earthlink is clueless.
    This all works properly using Internet Explorer.

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove the site's cookies (save any pending work first) using either of these. While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    These features rely on JavaScript, and it sounds as though you have scripting enabled if you get (the wrong) color changes. Some add-ons might alter the way scripts operate, so a standard diagnostic to bypass interference by extensions (and some custom settings) is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode."
    If those features work correctly, this points to one of your extensions or custom settings as the problem.
    To also disable plugins, you can use this page:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Plugins category
    Any change?

Maybe you are looking for

  • Fingerprin​t lock is not working!!!

    Hlw guys! fingerprint sensor is not working on my probook 450 g2. Validity Fingerprint Sensor  Driver has been already installed but it's not working. plz let me know how i will solve this problem. need your very important expert advise. thank you...

  • Sender jdbc  update sql error

    hello friend , my xi-content scenario is oracle -> xi ->sapr/3 i am getting erro message in adapter monitor as following  Sender Adapter v0915 for Party '', Service 'oracle': Configured at 04:26:46 2006-04-03 Last message processing started 05:17:12

  • Desperate! Trying to connect E2 with LG VX8300 phone

    I have a Tungsten E2.  Love it except I can't get it to find the Bluetooth connection to my phone.  Very frustrating.  My phone is an LG VX8300.  Looks like my phone recognized the Tungsten device, but the E2 does not have that phone under it's devic

  • How to set Shift_JIS as output  decoding?

    How can I configure a web application output stream uisng Shift_JIS as default encoding in Sun Java(TM) System Web Server 6.1 2005Q4 SP6 ? Is there any parameter in sun-web.xml able to server such a purpose? Any help would be appreciated. Edited by:

  • Is there a way to break up sections.

    Sorry, I'm a quark user and am having to use this program for a project. I'm using an old proposal as a template, and there are arcane custom page layouts. anyway, I want to be able to re-order the pages, many of which are pdf's anyway, but I can't f