How to find the name of the color for a PDEElement space

Hello

I'm trying to find the color for each PDEElement space in my PDF file. While doing this,
I put some (cost stmts) debugging statements that print the color_space as of integer values. I gave this list
After the code.  I think that color space must be something like CMYK, DeviceRGB and DeviceGray... etc.

How can I know the name of actual color space corresponding to these numbers printed in the instructions for debugging.

Please please help me...

Sub ProcessElementDetails (PDEElement element)
{
PDEGraphicState gfx_state;
ASInt32 pdeType = PDEObjectGetType (reinterpret_cast < PDEObject > (item));
ofstream outfile("E:\\temp\\test.txt",ios::app);
outfile < < "ProcessElementDetails\n";

If (pdeType is kPDEText)
{
outfile < < "text PDE type\n";
PDEText pde_text = (PDEText) element;
ASInt32 num_run, i.;
num_run = PDETextGetNumRuns (pde_text);
outfile < < "number of tracks for PDEText: ' < < num_run < < '\n'; '"
for (i = 0; i < num_run; i ++)
{
PDETextGetGState (pde_text, kPDETextRun, i, & gfx_state, sizeof (PDEGraphicState));
ASAtom color_space = PDEColorSpaceGetName (gfx_state.fillColorSpec.space);
outfile < < "color space:" < < color_space < < '\n ";
}
}


If (pdeType is kPDEImage)
{
outfile < < 'Image PDE type\n ";
PDEElementGetGState (element, & gfx_state, sizeof (PDEGraphicState));
ASAtom color_space = PDEColorSpaceGetName (gfx_state.fillColorSpec.space);
outfile < < "color space:" < < color_space < < '\n ";
}

If (pdeType is kPDEContainer)
{
outfile < < "PDE container type\n";
Content PDEContent = PDEContainerGetContent (reinterpret_cast < PDEContainer > (item));
NumElem ASInt32 = PDEContentGetNumElems (content);
for (ASInt32 i = 0; i < numElem; i ++)
{
item = PDEContentGetElem(content, i);
ProcessElementDetails (element);
}

}
}

Debugging statements with color numbers:
====================================
ProcessElementDetails
Image type of PDE
Color space: 700
ProcessElementDetails
Type of text PDE
Number of tracks for PDEText: 63
Color space: 388
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 388
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 388
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
ProcessElementDetails
ProcessElementDetails
Type of text PDE
Number of tracks for PDEText: 38
Color space: 389
Color space: 700
Color space: 390
Color space: 388
Color space: 390
Color space: 388
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 390
Color space: 389
Color space: 700
Color space: 700
Color space: 700
Color space: 700
Color space: 700
Color space: 700
Color space: 700
Color space: 700
SeparateColorPlates
PDF file exists
Number of Pages: 1
Number of items: 5

You need to read some more on what is a "ASAtom" and

How to use them.

Tags: Acrobat

Similar Questions

  • How to find the password for the embedded weblogic Server

    How to find the password for the server weblogic shipped from jdeveloper please?

    User, please tell us our jdev version!

    You can't find. Once he lost you can set a new one. For this you can either remove server embedded weblogic (delete the DefaultDomain file in the folder system11.1.1.x.x.x.x.) either you go to the system11.1.1x.xx.x/DefaultDomain/servers/DefaultServer/security folder and open the file boot.properties and delete the encrypted user name and password values and enter the new values for them in normal character. Save the file and restart the integrated server. Connection with the new username and password and it should work.

    The new user name and password are encrypted automatically.

    Timo

  • How to find the password for my Motorola Wireless?

    How to find the password for my Motorola Wireless?

    How to connect another computer to the Motorola Wireless?

    ... and now my computer won't connect to the wireless...

    Now would be a good time to use the instructions of the Setup Guide quick Motorola SBG940.

    ... I think I'll call my cable provider then!

    It may be better to talk to someone on the phone instead of trying to communicate via typed messages repeated as some of the information in the previous messages typed always seem to be lost in translation.
  • How to set the color for background ChoiceBox point to ChoiceBox with css?

    How to set the color for background ChoiceBox point to ChoiceBox with css?

    I need to change the backgound color list items.

    I tried with the following code, but it's not help to:

    {.context-menu .choice-box

    -fx-background-color: Red;

    }

    .choice-box .menu-item {}

    -fx-background-color: red;

    }

    In Java 8, either of your selectors should work.

    In Java 7 (JavaFX 2.2), you need of the following workaround:

    #choice-box-menu-item {
         -fx-background-color: red ;
    }
    
  • How to specify the color for LR space?

    How to specify the color for LR space?

    chlonini said:

    How to specify the color for LR space?

    LR only uses the ProPhoto RGB color space. You cannot specify any other

    color space (work). When you export pictures, you can specify a

    different color space to convert. Or if you use an external editor.

    You can choose what color space to send to the external editor.

  • Pavilion dv6-7025tx: how to find the driver for my hardware

    Operating system: Microsoft Windows 7 (64-bit)
    Product name: HP Pavilion dv6 - 7025tx Entertainment PC
    Product number: B3J88PA #AB5
    Motherboard: Hewlett-Packard 181st
    Chipset: Intel HM77 (Panther Point)
    BIOS: 29/05/2014 worm. F.2BS

    I installed an SSD and a clean Windows 7. I started to download the drivers from the site when I found that there are too many drivers for the same hardware, for example under network, there are 9 drivers of Intel, Broadcom, Ralink, Realtek, and Atheros.

    How can I find the driver for my PC?

    This says it all. Each device has a unique ID of the signature or of the device:

    http://dellwindowsreinstallationguide.com/downloading-drivers-checking-hardware-ids-and-downloading-and-installing-dell-system-drivers-in-the-correct-order/checking-hardware-ids-in-the-device-manager/

    If you find the device ID and google it you can find what it is. My own laptop, I have an Intel Dual Band AC 7260 wireless card and this is the device ID:

    PCI\VEN_8086 & DEV_08B2 & SUBSYS_C2708086

    So find a string like that for each device and it will tell you the manufacturer and chipset of each device and let not find you the driver to install. If you find several drivers for the device even look at dates of issue of the drivers and only install the most recent.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • How to find the password for wifi connection?

    I'm trying to connect my iphone to my internet TV. On my phone, it asks me a password to connect to my network TV (different from the wifi network that I connected my TV) and I have no idea how to find the password.

    Hello Pam,.

    Welcome to the community of Sony.

    What is the model # of the TV?

    You can locate the model # of the TV from this link.

    The password has been entered in the iPhone is the WPA password.

    See the following article in the knowledge base to use the Wi - Fi Direct feature with your iPhone.

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/34416

    Please mark it as "acceptable Solution" If you find this information useful.

    Kind regards

    Colby

  • HP OFFICEJET 7310: LOST INSTALL CD FOR OFFICEJET 7310 ALL-IN-ONE PRINTER - ANYONE KNOW HOW TO FIND THE DRIVER FOR IT?

    ANYONE ABLE TO WALK THROUGH WHERE TO FIND THE DRIVER FOR PRINTER HP OFFICEJET 7310?  I LOST INSTALLATION CD YEARS.

    Hello:

    You can download the driver from the link below...

    This download includes the HP Photosmart and Officejet Software Suite (advanced imagery and product functionality) and driver.

    File name: AIO_CDB_Net_Full_Win_WW_140_408 - 5.exe

  • How to set the color for a particular column in the table in advance?

    How can we set the color for a particular column in advance table based on a few feteched of vo in process request query parameter?

    Hello

    Reference http://oraclearea51.com/blog/dynamically-color-the-rows-in-an-oa-framework-advanced-table.html

    and prev thread. Can color us the lines in the column of a table

    It will be useful.

    Kind regards
    GYAN

  • How to find the drivers for the Lexmark 6250 printer

    Help

    bought a new pc can not find a driver for my printer Lexmark 6250, was having the web all afternoon, someone help with this?

    You can find the Lexmark support Web site on the Lexmark drivers.

    Lexmark Web site:
    http://support.Lexmark.com/index?page=product&linkSelected=Node0

  • How to find the SID for DB Oracle 11g

    Someone installed a new database of Oracle 11 g on my machine. Now I'm opening "SQL Developer" and it asks username, password and sid. I don't know what is the SID for my case. How I know that?

    2827706 wrote:

    The guy is not available.

    I checked the list of services in my machine. There is no service windows in my system named OracleService

    You mention that you are using Windows, but if you are and that you have installed the oracle database software and NO service like OracleService , then you do not have a database. But then, why the hell you you ask about this? If you do not want the database software, why don't you just go ahead and uninstall it? And how is it, someone can come and something on your server and have no idea about it?

    Aman...

  • How to find the reason for the high use of the processor - shared server process?

    Hello

    I have a Linux server with instance and an oracle 11.2.0.3. The database is configured for shared server. I do not know the application using the database, but they have performance problems. When I check the server I see, that ora_s001 use a processor Core with 90 to 100%. Is there a way to know the reason for the high CPU load? I'm not very adept at finding bottlenecks or bad sql statements. What I found ist, that some users have very high logical_io and the same users have much cpu_usage.

    What can I do next? Thanks for the tips.

    You must Server multi-user shared for this number of sessions. The main objective os using MTS is reducing the memory usage on the server for the UGA and PGA of sessions.

    About the CPU usage, you must session which uses this server shared at the time, with process $ v and v$ session to trace. From there, check the SQL_ID running and then get his stats. This is probably one or two SQLs with large number of I/o logic. This happens most of the time due to incorrect cardinality estimates and/or bad statistics on the subject which causes suboptimal plans to generate.

  • How to find the cumaltive for a distinct element in the same column

    Hello

    I wrote the following code,

    Select msid, nvl(starttime,0) starttime, sessionvolume, sum (sessionvolume) on sum1 (order by starttime LINES UNBOUNDED PRECEDING)
    of aaa_bill;

    I have many MSID and I want to calculate the cumaltive for each of them, but my code calculate the MSID cumaltive regardless, sample output like below

    Sum1 msid Starttime Sessionvolume
    20110809162804-9734-9734 84A8E46E8BD1
    20110809162804 45 9779 84A8E46E8BD1
    84A8E46E8BD1 20110809162804 2813 12592
    84A8E46E8BD1 20110809162804 21111 33703
    20110809162804 13253 46956 84A8E46E8BD1
    20110809162804 5919 52875 84A8E46E8BD1
    5C4CA98EABF3 20110809204555 6149 59024
    20110809204555 6739 65763 5C4CA98EABF3
    5C4CA98EABF3 20110809204555 2001 67764
    5C4CA98EAC00 20110809225314 1080 68844
    5C4CA98EAC00 20110809225314 6188 75032

    any help please,.

    Maybe

    select msid,
           nvl(starttime,0) starttime,
           sessionvolume,
           sum(sessionvolume) over(partition by msid order by starttime) sum1
      from aaa_bill
    

    Concerning

    Etbin

  • question: how to find the color temperature in a psd?

    Suppose that I attribute to a color in an image or in the bridge camera temperature. How do you find this color temperature in the psd of the image?

    File--> properties. It's just all the metadata.

    Mylenium

  • I need to know how to find the download for windows XP Service Pack 3 to put on my computer

    I have a dell laptop inspiron 1000 with windows xp service pack 2 installed and I can't find a download for windows xp service pack 3 other than the iso image on microsoft.com, I have in the past found service pack 3, my laptop, will not let me use windows update can anyone please let me know how I can fix this so I can update my computer by windowsupdate or another method Thank you.

    Patrick,

    Please see the thread below for a possible solution:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/cant-download-SP3/a71b55ee-10d4-410C-8b0b-a2114f7d8b94 >>

    UTC/GMT is 20:30 on Sunday, August 19, 2012

Maybe you are looking for