Setting PDF color background using Automator

Has anyone figured out how to add background color to PDF files using Automator? I need an easy, reliable way to establish a specific color background for an evolving series of PDF files (text and images) that are eventually to go online.
alan

So close.
Thanks All
https://decibel.ni.com/content/blogs/DailyCLAD

Similar Messages

  • How can i set  picture as background using JPanel

    hello can you kindly tell me how i can set picture as the background of my jpanel instead of using set
    setBackground(Color.bule)

    you can use a JLayeredPane ; put a JPanel containing a JLabel based on an ImageIcon on the lowest layer of your JLayeredPane
    then, use upper layers to add components
    edit: another possibility is to override the "paint()" method of your JPanel container, and use drawImage() to paint the picture as a background

  • Set Cell Color without using DefaultTableCellRenderer

    Hi,
    Is there any possible to set the JTable cell color without using DefaultTableCellRenderer ?. For ex, I have one JTable that having 9 rows and 9 columns. I have to set the cell color in 2nd row & 3rd column.
    Please anyone give me guidance to solve this.
    Thanks & Regards
    S Senthilkumar

    Fine.. Please try to understand my points.
    Because in my application I have JTable that having 10 columns and rows dynamically will come based on the value fetch from arraylist. If I use DefaultTableCellRenderer, for each record its calling CustomTableCellRenderer(). For example arraylist return 10 rows means its looping 100 times(10 rows * 10 columns).
    CustomTableCellRenderrer.java
    ArrayList dataLiveMarket = (ArrayList) new CheckUser().getLiveMarketDetails(unval);
    CustomTableModel modelLiveMarket = new CustomTableModel(dataLiveMarket);
    JTable tableOne = new JTable(modelLiveMarket);
    tableOne.setDefaultRenderer(Object.class, new CustomTableCellRenderer());
    CustomTableCellRenderrer.java
    package com.fxtrading.dao;
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.SwingConstants;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.TableModel;
    * @author user
    public class CustomTableCellRenderer extends DefaultTableCellRenderer {
        //private TableModel bidLastPrice;
        //int k;
        @Override
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
                boolean hasFocus,
                int row, int column) {
            Component component =
                    super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
            if (column == 0 || column == 1|| column == 2) {
                setHorizontalAlignment(SwingConstants.LEFT);
            } else if(column == 3 || column == 4 || column == 5 || column == 6 || column == 7 || column == 8){
                setHorizontalAlignment(SwingConstants.RIGHT);
            }else if(column == 9){
                setHorizontalAlignment(SwingConstants.CENTER);
            // Change cell Color - Started
            bidLastPrice = table.getModel();
            int bidLastRowCount =(int)table.getRowCount();
            for(k=0; k<bidLastRowCount; k++) {
                String bidPrice = (String)bidLastPrice.getValueAt(k,4);
                String lastPrice = (String)bidLastPrice.getValueAt(k,8);
                bidPrice = bidPrice.replace(",","").replace("$","");
                lastPrice = lastPrice.replace(",","").replace("$","");
                if(Double.parseDouble(bidPrice)<Double.parseDouble(lastPrice)){
                    if(row == k && column == 4){
                        component.setBackground(Color.RED);                   
                    }else{
                        component.setBackground(Color.WHITE);
                    System.out.println("Row Count -->"+k+" Less ----> Bid Price----> "+Double.parseDouble(bidPrice)+" : Last Price----> "+Double.parseDouble(lastPrice));
                }else{
                    if(row == k && column == 4){                  
                        component.setBackground(Color.GREEN);
                    }else{
                        component.setBackground(Color.WHITE);
                    System.out.println("Row Count -->"+k+" More ----> Bid Price----> "+Double.parseDouble(bidPrice)+" : Last Price----> "+Double.parseDouble(lastPrice));
            // Change cell Color - End
            return component;
    }Thanks & Regards,
    S Senthilkumar

  • Can you change the vi color background using a property node?

    I was wondering if it was possible in Labview to use a property node to change the front panel background color for one iteration and then back to an original color afterwards. I dont think it is possible but would like to know for sure.
    Thanks,
    Jody
    Jody M.
    The Procter and Gamble Co.
    Certified Labview Developer
    Currently using LV2012.
    Solved!
    Go to Solution.

    Yes you can
     That's how you change it, you will just have to put some logic to change it back
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    FP color.PNG ‏4 KB

  • Setting pdf printer settings use framemaker FDK

    I am trying to create a framemaker client that will save a book as a pdf file. This client will do all the steps automatically and will be activated nightly on a build server.
    My problem is that when I use the command F_ApiSave() with the arguments set so that the file will be correctly saved, I get an error in framemaker that says I must set the PDF printer property: "Rely on system fonts only; do not use document fonts." to off. This option is already set to off by default, but my client must be changing it to on.
    Is there any way to change this option using the Framemaker API in C on windows?

    gmuresan, if you haven't yet posted on the FrameDev list, you might find more FDK information there:
        http://groups.yahoo.com/group/frame_dev/

  • Extracting/Setting PDF Table contents using javascript

    Hello,
    Can you experts please let me know the following?
    1. Is there a way to extract PDF table contents?
    2. Can I set the row value via java script?
    Bottom line is I need to implement editable table in PDF. What are the ways I can achieve this feat?
    Thanking you in advance!
    Best Regards

    Hi PDL,
    I am actually writing a piece (C++) of code that generates Acroform currently. It is still in the primitive stage, just provided support only for text fields, choice fields and buttons.
    As I mentioned above, I have a requirement to generate a editable table...
    Sure I can provide the PDF(acroform) that is generated by the code.
    But how can I send the file to you? Can you share your email-Id? Or can I paste the content of the output here ?
    %PDF-1.5
    %%âãÏÓ
    1 0 obj
    <<
    /Pages 2 0 R
    /AcroForm 6 0 R
    /Type /Catalog
    >>
    endobj
    6 0 obj
    <<
    /CO []
    /Fields [ 7 0 R 9 0 R 10 0 R 11 0 R ]
    /NeedAppearances true
    >>
    endobj
    2 0 obj
    <<
    /Type /Pages
    /Count 1
    /Resources
    <<
    /ProcSet 3 0 R
    >>
    /Rotate 0
    /Kids [4 0 R ]
    >>
    endobj
    7 0 obj
    <<
    /A 8 0 R
    /BS <</W 1 /S /S>>
    /DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
    /DR
    <<
    /Font <</Helv 14 0 R >>
    >>
    /F 4
    /FT /Btn
    /Ff 65536
    /H /P
    /MK
    <<
    /BC[0.87 0.83 0.55]
    /BG[1.00 0.94 0.55]
    /CA(PDF Button)
    >>
    /P 4 0 R
    /Rect [300.00 690.00 400.00 710.00]
    /Subtype /Widget
    /T (Button)
    /TU (PDF Button)
    /Type /Annot
    >>
    endobj
    8 0 obj
    <<
    /S /JavaScript
    /JS (if \(app.viewerVersion>=5\) {app.alert\("I-PDF 0.1 DEMO", 1\);})
    >>
    endobj
    9 0 obj
    <<
    /BS <</W 1 /S /S>>
    /DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
    /DR
    <<
    /Font <</Helv 12 0 R >>
    >>
    /F 4
    /FT /Tx
    /Ff 12582912
    /H /P
    /MK
    <<
    /BC[0.00 0.00 0.00]
    /BG[1.00 1.00 1.00]
    >>
    /MaxLen 45
    /P 4 0 R
    /Rect [200.00 750.00 400.00 770.00]
    /Subtype /Widget
    /T (Text Field1)
    /Type /Annot
    >>
    endobj
    10 0 obj
    <<
    /BS <</W 1 /S /S>>
    /DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
    /DR
    <<
    /Font <</Helv 13 0 R >>
    >>
    /F 4
    /FT /Tx
    /Ff 12591104
    /H /P
    /MK
    <<
    /BC[0.00 0.00 0.00]
    /BG[1.00 1.00 1.00]
    >>
    /MaxLen 15
    /P 4 0 R
    /Rect [200.00 720.00 400.00 740.00]
    /Subtype /Widget
    /T (Text Field2)
    /Type /Annot
    >>
    endobj
    11 0 obj
    <<
    /DA (/Helv 10.00 Tf 0.00 0.00 0.00 rg 0 G)
    /DR
    <<
    /Font <</Helv 15 0 R >>
    >>
    /F 4
    /FT /Ch
    /Ff 67239936
    /MK <</BG[0.87 0.83 0.55]>>
    /Opt [[( )( )] [(AMX) (American Express)] [(CBL) (Carte Blanche)] [(DCL) (Diners club)] [(DSC) (Discover)] [(ENR) (EnRoute)] [(JCB) (JCB)] [(MSC) (Mastercard)] [(VIS) (Visa)]]
    /P 4 0 R
    /Rect [200.00 650.00 300.00 670.00]
    /Subtype /Widget
    /T (Choice)
    /Type /Annot
    /V (VIS)
    >>
    endobj
    4 0 obj
    <<
    /Parent 2 0 R
    /Annots [7 0 R 9 0 R 10 0 R 11 0 R ]
    /MediaBox [0 0 595.00 842.00]
    /Resources
    <<
    /ProcSet [/PDF /Text /ImageI /ImageC]
    >>
    /Contents 5 0 R
    /Type /Page
    >>
    endobj
    5 0 obj
    <</Length 26>>
    stream
    q
    BT
    36 806 Td
    ET
    Q
    0 0 m
    endstream
    endobj
    3 0 obj
    <<[/PDF /Text /ImageI /ImageC]>>
    endobj
    12 0 obj
    <<
    /BaseFont /Helvetica
    /Subtype /Type1
    /Encoding /WinAnsiEncoding
    /Type /Font
    >>
    endobj
    xref
    0 13
    0000000000 65535 f
    0000000016 00000 n
    0000000172 00000 n
    0000002016 00000 n
    0000001756 00000 n
    0000001942 00000 n
    0000000081 00000 n
    0000000272 00000 n
    0000000603 00000 n
    0000000709 00000 n
    0000001017 00000 n
    0000001326 00000 n
    0000002064 00000 n
    trailer
    <<
    /Root 1 0 R
    /Size 13
    >>
    startxref
    2162
    %%EOF

  • How to set PDF Job option using FDK11?

    Hi,
    I have a tool to convert Framebook into PDF and this works good. But the generated pdf is not of the same size as it is generated through FrameMaker Save as PDF. With the FrameMaker API, I get a dialog box to choose the different PDF Job options available. I came across a similar provision with FDK which also has a property to set the PDF Job options but it doesnt work as expected. Please correct me if my approach is wrong.
                    params = F_ApiGetSaveDefaultParams();
                    i = F_ApiGetPropIndex(&params, FS_FileType);
                    params.val[i].propVal.u.ival = FV_SaveFmtPdf;
                    i = F_ApiGetPropIndex(&params, FP_PDFJobOption);
                    params.val[i].propVal.u.ival = F_StrCopyString ((StringT)"Smallest File Size");
    Thanks,
    Venkat

    As far as I know, the only way to specify PDF options is by programmatically displaying the PDF Options dialog (via WinAPI calls), "selecting" the options and "pressing" the OK button. There have been numerous discussions on this topic on the Yahoo frame_dev group ..
         http://groups.yahoo.com/neo/groups/frame_dev/search/messages?query=pdf%20options
    And here's some code ..
         http://groups.yahoo.com/neo/groups/frame_dev/conversations/messages/1578
    You may be able to set the options as you're doing, but I don't think they are "set" until you display the dialog and "press" the OK button.
    ...scott

  • How to set up new printer using Automator

    I would like to create an Automator workflow to set up a new printer, so that other users can download the workflow and have the process automated for them. The workflow would need to add a new LPD printer, supply the printer's address, queue name, and printer name.
    Anyone have an idea for accomplishing this?

    Follow your printer's wireless installation instructions.

  • Converting PDF to Word Using Automator?

    I'm trying to convert a PFD file into a word processing Word Document. Don't know if this is the right place, but if anyone can tell me how to do it, or direct me a software program, I would appreciate it.
    Thank you

    Can't find an Automator action. Might be there in some way though. I'm not too familiar with Applescript but there might be something there.
    In the meantime, for my personal curiosity, from this page, I downloaded this App to see how it works. There are a couple apps listed on the first page.
    Good luck.

  • Pdf as background to canvas to draw on pdf

    <mx:HTML top="0" bottom="0" left="0" right="0" location="test.pdf"/>
        <mx:Canvas top="0" bottom="0" left="0" right="0" initialize="canvasInit(event)">
        </mx:Canvas>
    in canvasinit event i did drawing the line in mouse using mouse.
    if i try to set pdf as background to the canvas, it is not set as background. it will be in the foreground. how to send pdf as a background of canvas.
    i tried lot. i am not able to set pdf as background. it comes to foreground.
    so please if anybody is having an idea on tht please hlep me
    If i load the html page instead of pdf. it works fines. i.e html page in background of canvas.  i used following code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute">
        <mx:Script>
            <![CDATA[
                import mx.containers.Canvas;
                private var drawing:Boolean = false;
                private function canvasInit(e:Event):void {
                    var c:Canvas = Canvas(e.target);
                    c.graphics.lineStyle(2, 0xff0000, 1);
                    c.addEventListener(MouseEvent.MOUSE_UP, onMouseEvent);
                    c.addEventListener(MouseEvent.MOUSE_DOWN, onMouseEvent);
                    c.addEventListener(MouseEvent.MOUSE_MOVE, onMouseEvent);
                private function onMouseEvent(e:MouseEvent):void {
                    //trace(e.type);
                    if (e.type == MouseEvent.MOUSE_DOWN)
                        drawing = true;
                    else if (e.type == MouseEvent.MOUSE_UP)
                        drawing = false;
                    else if (e.type == MouseEvent.MOUSE_MOVE) {
                        var c:Canvas = Canvas(e.target);
                        //trace((drawing ? "drawing to " : "moving to ") + e.localX + "," + e.localY);
                        if (drawing)
                            c.graphics.lineTo(e.localX, e.localY);
                        else
                            c.graphics.moveTo(e.localX, e.localY);
            ]]>
        </mx:Script>
        <mx:HTML top="0" bottom="0" left="0" right="0" location="http://labs.adobe.com/technologies/afcs/"/>
        <mx:Canvas top="0" bottom="0" left="0" right="0" initialize="canvasInit(event)">
        </mx:Canvas>
    </mx:WindowedApplication>
    instead of html page, if i put any pdf  file. it is not in background. it comes to the foreground. i don't know how to set pdf as background. please help me

    1. Yes you can load SWF files using Loader and then order that SWF behind or above other display objects. (Although in Flex, I think you would use SWFLoader.) If you load a SWF in an HTML control, it will always be on top.
    2. I'm not sure what you mean by the background of the canvas. The flash display list is a tree. A parent object can have its own graphics (drawn with the graphics drawing API). Any children added to that object will display above these graphics. If you added that parent object to another display container, it (and its children) would display above any lower indexed children of that display container. Thus a canvas has a background rectangle that it draws with the graphics api. Any children you add to it are drawn in index order. The object at index 0 is drawn at the bottom of the visual stack.
    3. No.
    4. Technically you could load the PDF file into memory, parse the file structure and convert what you parsed into ActionScript objects. I suspect that is more work than you want to do.

  • Using Automator for File Sharing, including 1Password Question

    I'm using 1Password (http://agilewebsolutions.com/products/1Password) on three computers at my shop and instead of using three separate library files I just want one main file/directory/database that all three computers can use, share and update.
    So far I've accomplished this by using File Sharing.
    It's working fine though when I shut off all three computers and restart I have to reconnect all computers (selecting a 'SHARED' computer on the left of an open window menu and clicking on 'Connect As...' on the top right) to reestablish the linked file.
    Is there anyway I can set up a macro using Automator to do this when I turn on my computers?

    you don't need automator for this. go to finder preferences->general and check the box to show connected servers on the desktop. then just connect to the remote computers and then drag the mounted volumes from the desktop to your login items in system preferences->accounts->login items. then when you log in the remote computers will be automatically mounted. you can also use a cloud storage solution like Mobileme or DropBox and store the password database file in a central online location.

  • Word 2007 to PDF with Background Color

    Hello,
    We have a Word 2007 document which has a Blue background and White Fonts.
    When we print to PDF, we can only see the Blue background and the fonts are NOT visible
    Any ideas?
    Thanks!!!

    Well, now I'm confused <g>.
    Following your directions:
    --| opened a new DOCX with Word 2007 & saved
    --| then, from the Page Layout ribbon; Page Color > selected a Theme Coler of dark blue (top row, 4th from left)
    --| entered some text (creatively, I entered "This page has a blue backgroud)
    This text had the default font color (black)
    --| selected the text string, right clicked for the context menu, selected "Font"
    --| in the Font Dialog, used the "Font color" drop-down to change the font color
    --| selected "white" (top left selection from the Theme Colors)
    --| from the Acrobat ribbon, opened Preferences
    --| used my default configuration:
         --| Settings tab: all selected except - Create PDF/A-1a 2005 compliant file & Attach source file
         --| Security tab: the add-in default (nothing selected)
         --| Word tab: first choice not selected; other two selected
         --| Bookmarks tab: first and third selected, second not selected
         --| Video: as-is with the default selections
    --| clicked Create PDF & Save
    --| output PDF: page background is the dark blue; font color is white & readily viewed.
    fwiw -
    Used MS Word 2007 (Office Enterprise)
    Vista Ultimate
    Acrobat 9 Professional Extended (TCS v2)
    PDF output via Adobe PDFMaker (the "Acrobat" ribbon)
    Time for a glass of the wine left over from yesterday?
    Be well...

  • Using Automator to Batch Create PDFs

    I've been trying to find a way to make an Automator workflow that will take the name of a folder and combine it's files into a PDF with as little manual input as possible and have finally figured out how to do so. I've seen others ask how to do this for a while so I wanted to share how I did it.
    Why would you want to create PDFs? If you have scanned books, photos, documents or anything else on your Mac, you can create PDFs out of them. You can then store these in iTunes and either read them using Preview on your Mac or iBooks on your iOS device.
    What this workflow will do:
    Take a folder with images, get the folder's name, and create a PDF of the images with it's name.
    On the next pass of the workflow, it will send the previous folder to the trash.
    Create/have a backup of your files!
    Create a folder somewhere that you can drop your folders in. Name it Automator Dropbox. You can create one wherever you want, but this workflow was created with Automator Dropbox in mind so you'll need to change it as necessary.
    Open Automator and create a new workflow.
    Find Finder Items
    - Search Automator Dropbox
    - [All] of the following are true:
    - [Label] is [Red]
    This will search for any folders that were done before.
    Move Finder Items to Trash
    This will move the previous folder/files to the trash.
    Ask for Finder Items
    - Prompt: [Choose a Folder]
    - Start at: Automator Dropbox
    - Type: [Folders]
    This will ask you to choose the next item to convert to PDF.
    Set Value of Variable
    - Variable: pdfvariable
    This will take the name of the folder you just selected and use it to to rename your PDF.
    Label Finder Items
    - [Red]
    This will mark the folder you're working on for deletion the next time the workflow is ran.
    Get Folder Contents
    This will grab all the image files within the folder so that it can create a PDF out of them.
    Scale Images
    - To size (pixels): 1600
    This will scale the maximum dimension of your image down (or up) to 1600px. I find this to be the sweet spot for performance on the iPad 3, and it looks just fine. If the maximum dimension of your image is lower than 1600px, I'd create a duplicate workflow of this and leave out this step; otherwise you will be upscaling and your image won't look as good. You can also leave this step out if you want your original image size kept, but on the iPad 3 and below there will be a delay going from page to page.
    New PDF From Images
    - Save Output to: [Desktop]
    - Output File Name: tempname
    This will save your finalized PDF to the Desktop. You can change this to whatever you want; I would suggest the Automatically Add to iTunes folder located in [Music > iTunes > iTunes Media > Automatically Add to iTunes]. You will find your PDF in the Books category in iTunes.
    Rename Finder Items
    - [Replace Text]
    - Find: tempname in [Full Name]. Ignore Case checked.
    - Replace: [pdfvariable] (Drag pdfvariable from the variables window into the text field for "Replace". If you don't see the variables, go to "View > Variables."
    You can't just drag the variable into the PDF name field in the step above, so this extra step is necessary. It will rename your PDF with the name of the folder it was created from. It will also add the full file path, which will be taken care of in the next step.
    Rename Finder Items
    - [Replace Text]
    - Find: Users/yourname/Documents/Automator Dropbox in [Full Name]. Ignore Case checked.
    - Replace: LEAVE EMPTY
    This will delete the name of the path from the name of your PDF. If your working folder is not Documents/Automator Dropbox, change it to whatever that is.
    If you're running this workflow on a bunch of folders, you can simply keep your cursor over the workflow's play button and press the right arrow + enter to select the next item in queue. This workflow was made for using a little human interaction as possible, so if anyone has suggestions on how to improve on it please post below.
    One last thing - if you're seeing a red folder when you run the workflow to choose a folder, it's because spotlight hasn't indexed it yet and the workflow could not find it to delete it. Just go on to the next item.

    Someone (not me) has created an automator workflow that does this, using a shell script that runs the "pstopdf" unix command. I just downloaded it and tested it on 10 .eps files. You will need to edit the first automator action in the workflow to find the eps files you want (by default it looks for all eps files on your computer), but once you do that, it works like a charm! Converted my eps files to pdf's. Of course, once they are pdf files, you can use automator to convert them to whatever format you want.
    http://mad-sci.blogspot.com/2007/12/why-i-hate-computers.html
    (link to the actual zip file containing the workflow below)
    http://www.physics.mcgill.ca/~burkes/code/PDFworkflows.zip

  • Setting a default background color

    Hi All,
    I would like to set a default background color for all the
    components that I'm going to draw. What is the best
    way to achieve this?
    Thanks.
    Syed

    You can set using UIManager of the Look and Feel.
    UIManger.put("Button.background", Color.blue);
    will set the color of all the JButtons to blue. Like that you can change for all the components you need.
    Mohan

  • Can I SAVE one color to use for the backgrounds of many separate paragraphs?

    I have changed the background color of paragraphs in different Chapters for the purpose of making the content within that paragraph stand out.
    It’s easy to pick a random color in the Inspector. Open the “Text” tab, click the “More” button, Background Fills, check “Paragraph” and select a color from the available methods.
    How can I SAVE one particular color to use for as many separate paragraph backgrounds that I want to make the same color?
    I’m using iBooks Author ver. 1.1
    As I work on the formatting, I’d like quick & easy access to those one or two special colors that I like.
    Using the color wheel I can make a rough guess for each different paragraph, but its not exact.
    None of the crayons or the colors in the Pallettes is the color I’m after.
    Slider are a pain to try to exactly set each time.
    Thanks for any help.

    DarrylBurke wrote:
    I don't know whether there's a better way (or whether this will work as expected), but I would try setting a boolean flag on keyPressed and reset the flag on keyReleased, for each key of interest. To compute the x / y movements, I would check the state of all flags.
    dbI was thinking about your answer a few nights ago. And I was like, wait... it works! I thought, at first (as I replied before) that it wouldn't work, but I refract what I said. Its actually a very simple solution. And I apologize for questioning your solution previously. Thanks so much!
    P.S. I tested it out. Works like a charm.
    -Create booleans to handle each key
    -Set to true on press
    -Set to false on release
    -Check and update in separate thread accordingly

Maybe you are looking for