Sample PDF Color based on Coordinates

Hello all-
First off I would like to apologize if this discussion is in the wrong forum, and I welcome a correct link to where I should be posting this.
I am doing some software development for a local company and they are wanting a program that can analyze OMR scans that are saved as PDF files.  I have searched through the Acrobat SDK API and I am unable to find anything that is helpful.  We are designing the program in Visual C++ and are hoping to look for a solution to the problem we are having.
I did read in the reference manual for PDFs (Version 1.7) that there are various coordinate systems that are found within a PDF file.  I imagine there is some way to access these coordinate system and pull the RGB values from that area in the file.  I need to basically tell if the area is white or black, not necessarily all the colors of the rainbow.
I am sorry I do not have any code available, as this is a new project and I am just trying to get a concept on how I will go about solving this problem.
Thanks for all of the responses and again, please let me know if I am in the wrong forum.
-Mojave Storm

Hello all-
First off I would like to apologize if this discussion is in the wrong forum, and I welcome a correct link to where I should be posting this.
I am doing some software development for a local company and they are wanting a program that can analyze OMR scans that are saved as PDF files.  I have searched through the Acrobat SDK API and I am unable to find anything that is helpful.  We are designing the program in Visual C++ and are hoping to look for a solution to the problem we are having.
I did read in the reference manual for PDFs (Version 1.7) that there are various coordinate systems that are found within a PDF file.  I imagine there is some way to access these coordinate system and pull the RGB values from that area in the file.  I need to basically tell if the area is white or black, not necessarily all the colors of the rainbow.
I am sorry I do not have any code available, as this is a new project and I am just trying to get a concept on how I will go about solving this problem.
Thanks for all of the responses and again, please let me know if I am in the wrong forum.
-Mojave Storm

Similar Messages

  • Sampleing from colors from placed pdfs in INdesign

    Hello every one. I keep running into a problem where when I place a linked image in Indesign cc I am only able to sample (using the eyedropper tool) a low res rgb version of whatever color I am trying to sample. When I view the final version the colors I created from the sample do not quit match the original. Does any one know why this is happening?

    You said it yourself: the Eyedropper reads an RGB color based on the pixels in the picture. The original image may be another color model. If the image was open in Photoshop, you could Eyedropper the color there; save as new Swatch; export the Swatch as an Adobe ASE (swatch exchange file); then import that ASE into your InDesign Swatch panel. For that to work well, let's assume you have a coordinated color management system turned on, and that both the InDesign document and the image in Photoshop are both defaulted to the same ICC color model.

  • Change cell color based on time

    I have a row with 24 cells. I want each cell (from left to right) to change color based on the time. Each cell will represent 1 hour A1=Midnight, B2=1AM, etc... At those specific hours I'd like the corresponding cell to change color. So, at midnight, A1 will change from white to red. I figured I could do this with conditional formatting.
    I created a table with =NOW() and formatted it to display only the hour. I then created my 24 column row and pointed each cell in that row to that =NOW() cell. Each cell now displayed the current hour. I setup conditional formatting so that, for example, if A2=1AM (as displayed in the cell) then the formatting would change, but this didn't seem to work. I'm guessing the conditional formatting is just seeing the formula and not the value in the cell. Any thoughts here?

    There are a couple of issues involved:
    1. Conditional formatting rules compare the value in the cell to be formatted to a fixed value or to the value in another cell. If the rule says "=", then the values must be exactly the same.
    2. Date and Time values in Numbers always contain both a time component and a date component. Always. The cell may be formatted to display only the time, only the date, or both, but no matter what is displayed, the values are equal only if the complete Date and Time value is the same.
    3. "Midnight", "1AM", are text values. They will never be equal to a Date and Time value.
    So the problems are to:
    • Extract the Hour from the Date and Time value returned by NOW()
    • Convert that number to a text value in the form "9AM", "9PM", or optionally "Midnight", and I presume, "Noon"
    • Store that changeable value where it may be compared to the value in the cell to be conditionally formatted.
    • Construct the rule to format the cell(s).
    Row 1 contains a sample of the 24 cells to be formatted.
    Columns D and E, rows 2 to 25 are a LOOKUP table, where the HOUR value is looked up and the corresponding text value returned.
    F2 (highlighted with an orangeish fill) contains the formula which extracts the HOUR value from NOW(), looks it up and returns the value displayed (and to be compared).
    F2: =LOOKUP(HOUR(NOW()),D2:D25,E2:E25)
    Regards,
    Barry
    Edit: Second thought
    The LOOKUP table can be avoided using this formula in F2
    =OFFSET($A$1,0,HOUR(NOW())-15)
    The -15 at the end of the formula works for my sample table, in which column 1 (column A) is 3PM. For column A=Midnight, the shift should be -0 (or just left off).
    Message was edited by: Barry

  • ADF Table cell color based on the value in that field

    Dear All,
    I want to create a table for our new application which contains a table used to represent the data in a chart format or matrix format,
    and each cell of the table should be filled with a colour out of three colors, based on the value belongs to which range eg:(1-8 ->green, 9-20 - yellow etc),
    I dont know how to implement this. Please help...
    Ranjith

    Check this out.
    How to highlight ADF table row based on column value?
    -Arun

  • Where can I get a sample pdf to test digital signature?

    I am trying to test my digital signatures in Adobe Reader X on Windows. However, I can't find a PDF file that has the correct "rights" to allow me to sign it.
    Is there somewhere I can get a sample PDF that will allow me to try my digital signature?

    Here's one: https://workspaces.acrobat.com/?d=wdmk-UM-PE35I3UdLukz9g

  • Sample .PDF files from Adobe versions 9, 10, 11, etc.

    I'm a software developer/tester and I'm currently testing a new software we are using to manipulate/upload PDF files to our website.  The software opens the PDF, counts the number of pages, displays the page numbers in a listbox, then lets users select which pages from the original document they would like to upload as a new document.
    That is working just fine.
    Where I could use some help is getting sample .PDF files created in Adobe 9, 10, 11, etc (1.7 ext 1, 3, 5 ,etc).  I want to test each version because we've had issues with a previous 3rd party software where it would not handle later versions (anything past 8, I believe).  I have Adobe 8.1 on my development machine right now and unfortunately I need to keep it the same version to handle PDF creation for other projects which can't handle the later versions.
    I've googled and googled and there doesn't seem to be a site that just has sample PDF files formatted in the various versions.  Can anyone point me in the right direction or host a few small PDF files?  If possible it would be better if they were at least 2 pages so I can test the extract pages feature.
    Thanks,
    James

    You refer to the extension levels, but they're nothing to do with the version of Acrobat - they relate to what's in the file. If you have 3D or Rich Media, you get an EL3 file - doesn't matter if you author it in A9 or AXI. Genuine EL5 PDF files are very rare, as the spec only introduced a couple of little-used options such as ColorDodge transparency blending. Most of them are actually XFA files from LiveCycle, as that's the version tag used to wrap XFA3 code.

  • How to set dynamic color , based on xml element

    Hi,
    We have a requirement, where based on certain conditions, a cell will be shown in a specific color. We would like the coloir to be based on an XML element. The xml element will have values like '#FF00FF' etc..
    We tried using xsl attribute with the following syntax ,
    <xsl:attribute xdofo:ctx="block"name="color"><?stdcolor?></xsl:attribute><?end if?>
    where stdcolor is the xml element, but when we use this , this is giving a syntax error.
    Let us know, if this is possible or is there any other alternate way to do this.
    Regards,
    - Vasu -

    Hi Vasu,
    http://winrichman.blogspot.com/2008/09/how-to-set-dynamic-color-based-on-xml.html
    use the following :)
    <xsl:attribute xdofo:ctx="block" name="color" ><xsl:value-of select="stdcolor" /></xsl:attribute>
    TO get the colors you wanted , you can refer to
    http://www.w3schools.com/Html/html_colors.asp

  • Change Column Header / Column Background color based on a value in a specific row in the same column

    SSRS 2012
    Dataset (40 columns) including the first 3 rows for Report layout configuration (eg: the <second> row specifies the column background color).
    Starting from the 4th row, the dataset contains data to be displayed.
    I would like to change the background color of the ColumnHeader/Column based on the value in the same column in the <second> row.
    How can I accomplish the this requirement? (this must be applied for all the columns)
    Thanks

    Hi Fasttrck2,
    Per my understanding that you want to specify the background color of all the columns/column header based on the value in one special column of the special row, right?
    I have tested on my local environment and you can add expression to condition show the background color in the columns properties or the column header properties.
    Details information below for your reference:
    Specify the background color in the Column header: you can select the entire column header row and in the properties add expression in the Background color :
    If you want to specify the background color for the entire column, you can select the entire column and add the expression, repeat to add background color for other columns.
    If you want to specify the background color based on the value in the specific columns and row, you can create an hidden parameter to get the list of values from the  specific column, specify the Available values and default values by select "Get
    values from a query", finally using the expression as below to get the specific value you want:
    Expression(Backgroud Color):
    =IIF(Parameters!Para.Value(1)="1221","red","yellow")
    If your problem still exists, please try to provide some smaple data of the report and also the snapshot of the report structure to help us more effective to provide an solution.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • PDF color changing when imported into InDesign 6

    I am importing a customers pdf into InDesign 6. When I do the import the color is changing from the original PDF colors. The original color in the pdf is 0/95/100/29 and when imported to InDesign 6 it becomes 21/98/100/12. Is there a setting I need in InDesign 6 to keep the original PDF colors intact?

    Are you using the eye dropper tool to get those numbers?  It could be the way the original PDF was created.  I have a feeling that the original settings ere set to "adapt" to color workflows or something similar.  See if you can open the PDF in Acrobat and set the file to "Leave Color Unchanged" if you can...somewhere in the file's profile or color setting.  It could also be the preview in InDesign.  If somehow there is a way to find out which color settings were applied to the PDF; you could then match those in InDesign's Color Settings.  If it is the preview reading, then the file should proof well.  If InDesign has corrupted the PDF's original color, then the file will proof bad.  I think it prudent to investigate the PDF's original Color Settings vs. InDesign's.  Try posting this question in the InDesign forum and see what you get back.  I'd be curious to know what they have to say over there.

  • Selecting additional colors based on colors provided in Color Guide

    I am using CS5 to pick some colors based on a given harmony rule, and have it returns 5 swatches to work with. How do I now pick additional colors while still staying in harmony with the colors already selected? I obviously do not have enough background yet to do this with the color wheel so I am trying to figure out the best way to get additional colors using the color guide.
    Thanks!

    Just for clarification: Does this mean that based on my original base color, a selected harmony rule and the 5 selected colors located next to the base color:
    - with 20 steps selected, it is now including 20 different versions of these 5 colors that are darker than the original 5 colors
    - with 20 steps selected, it is now including 20 additional versions of these 5 colors that have white mixed in to create the 20 tinted lighter versions
    Thanks!

  • Sampling HSL Color in 3D vector scope and matching in color wheel

    I am attempting to match two clips together. I have already adjusted luma and rgb values with the still shot comparison. I would now like to sample a color in the still shot get those values and then attempt to secondary grade with the HSL values. Now what's confusing me is that when I look at the sampled hue values (3d vectorscope set to HSL) they are like 217.7, 218.3, 218.8 etc. How do I match those hue values on the main color wheels when the hue values on the color wheel can only be adjusted from .00 to 1?

    Yikes. That is a difficult one (for me at least). Luckily I have not had to work much with issues like that.
    I had one project that was shot in a desert on two different days under different cloud conditions. What a pain. I have much less hair now. So I can kind of understand what you are going through.
    I guess depending on the shot, if the sky is unobstructed, it might just be quicker to composite in a new sky and then try to match up the rest of the shot via the secondaries in Color. Of course if you do that, then you get into more than likely having to do a reconform to replace the clip with the clip that has the new sky.
    I'm not as seasoned as others on here, maybe they can provide better suggestions than me.
    Good luck!
    P.S. I would be interested in knowing what you solution ends up being.

  • Sample a color from gradient

    Hi guys,
    1 - How do i sample a color from a gradient in a text? Here is the sample
    http://www.pixentral.com/show.php?picture=1TDDZ2kv0TRFDgJ1nNqSVQm25lapV
    I keep getting a white circle, like the color is not there. I put a gradient in a circle following this tutorial,
    http://vectips.com/tutorials/quick-tutorial-adding-gradients-to-text/
    maybe is ok to place the gradient inside the text but then i cannot sample color. How can i do it?
    2 - How can i make a beautiful gradient/layer effect like this logo?
    http://www.pixentral.com/show.php?picture=17CZROx3OiS23A8jq2WVsfXkY88RHr
    Thanks for any info!
    Cheers,
    S.-

    And another way is to simply create a normal blend from 2 rectangles, with your choice of start and end colors from your swatches. The same ones you used in your gradient. This creates a color ramp with as many complimentary blends as you need. In my illustration I used 25.
    Now, choose Menu -> Object -> Expand, say OK to the dialog. You can now use the Eyedropper tool to select the colors you would like to add to your swatches. Move the blend outside of the Artboard for future use, or delete it when finished.
    TIP:  if you want only a certain subset of colors, ungroup the blend after expanding it, choose the colors you want (or all), and then in the swatches pallette, from the top right drop down menu, choose "Add Selected Colors".
    Menu -> Object -> Blend Options: choose your steps, then choose Menu -> Object -> Blend -> Make, or Cmd-Alt-B/Ctr-Alt-B
    SORRY -- The graphic should say "25 Steps"... I changed it, which you can too, by going back to the Blend Options dialog. Check Preview to see what you're doing, and actually fit the blend directly under your chosen dot over the "i".
    Message was edited by: DocPixel-BMW

  • Photoshop CS5 colorpicker sampling lighter color

    When I try to edit the color of a shape layer by opening the color dialogue box of the shape layer, the color that is picked up is a lighter color than the color I clicked on. 
    The eyedropper is set to point sample and all layers.  This problem does not occur if I open the color dialogue box that is part of the toolbar.

    A screenshot showing everything at the moment just after you sample the color would be good as well.
    Keep in mind that adjustment layers above the layer will affect how it looks on the screen, but when you're editing the color of the layer itself it's going to show you the actual color of the layer.
    -Noel

  • Need to apply table fill color based on text content

    Totally new to Indesign-scripting – but really need a solution to this:
    I have a table
    I want to fill the table cell with a different color based on text content.
    If cell contents the text "Apple" fill color of cell should be color swatch "Red"
    If cell contents the text "Banana" fill color of cell should be color swatch "Yellow"
    Any help most appriciated!

    Hi Franke,
    Try the below code, may it will helpful:
    var myDoc = app.activeDocument
    //var myCell = app.activeDocument.textFrames.everyItem().tables.everyItem().cells.everyItem().getElement s()
    app.findTextPreferences = app.changeTextPreferences = null
    app.findTextPreferences.findWhat = "Apple"
    var myFound = myDoc.findText()
    for(i=0; i<myFound.length; i++)
        if(myFound[i].parent.constructor.name == "Cell")
        myFound[i].parent.fillColor = "aaa"
    If the above code helps you, then please give Helpful or Correct Answers.
    Because for the last 3 months only I started my Indesign Scripting Career.
    With the help of Forum legends I can able to reply for simple questions.
    Thanks all...
    Regards
    BEGINNER

  • Sampling the color of a pixel

    I have a very simple question: Is it possible for applescript to sample the color of a specific pixel on my screen and store it in a variable? (or three variables as the case may be)
    Thanks

    I knew I saw something like this earlier, but it took me a little while to find it.
    There is a scripting addition called XTools that lets you move the mouse from AppleScript - it is available at http://lestang.org/osax/XTool/XTool-2.0.dmg.tgz . With XTools installed, it is a simple matter to move the mouse to where you want, then tell DigitalColor Meter to copy the color to the clipboard (it isn't scriptable, but you can use keystrokes):
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    move mouse {500, 500} -- requires XTool OSAX
    tell application "DigitalColor Meter"
    activate
    tell application "System Events" to keystroke "c" using {shift down, command down}
    end tell
    log (get the clipboard)
    </pre>

Maybe you are looking for

  • Merge cartesian join in query plan

    Hi All Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production W are using many GTT's in our code, the query plan have Merge Cartesain join showing cardinality as '1' which is incorrect, as GTT tables have many rows. Due to this

  • Advanced table Items Read Only

    Hi All How to make Message Choice and Message Check Box items in Advanced Table Read Only through code? OATableBean oatablebean = (OATableBean)oawebbean.findIndexedChildRecursive("ItemsTable"); oatablebean.findIndexedChildRecursive("Type").setDisable

  • Javax.xml.soap.SOAPElement where does this  class exist

    Hi When i run the client application of a JAX-RPC it cannot find the javax.xml.soap.SOAPElement class and hence give runtime error I am using jwsdp final release Thanks and Regards Maria

  • How Do I Clear the app download screen

    How do I clear the app update screen after I have updated the apps.

  • Can I upgrade my 2008 Macbook 10.5.8 to Snow leopard?

    Hey everyone, I purchased my macbook in January 2008. It currently is running Leopard. I was wondering if I could upgrade it to snow leopard before I make the purchase. I have a intelcore 2 Duo proceesor, 2 cores, 2GB memory, Chipset: GMA950 and VRAM