Extracting the PICT resource from file ( DeRez )

Hi I'm trying to extract the PICT resource from a file, and I was wondering if DeRez is the right tool for the job.
I'm trying :
DeRez file -only PICT
but I get only hexadecimal output. I tried adding /Developer/Headers/FlatCarbon/SysTypes.r /Developer/Headers/FlatCarbon/Types.r but still only hex is outputed.
Pipelining it to Rez didn't do any good either.
Does anyone have an idea ? is there an easy way to convert this output to binary and have a nice pict file in the end ?

Hello,
Pipelining it to Rez didn't do any good either.
Here's the manpage for Rez:
http://www.hmug.org/man/1/Rez.php
Looks like it may have written to a file called Rez.out, if you didn't use the -o option to specify one. Also might want to try echo $? afterwards to check the exit status.
Cole

Similar Messages

  • Extracting the first page from all pdf's in a folder and save them to a new file

    Hi,
    As Bridge apparantly is unable to create a decent-looking PDF from a bunch of other PDF's, we're looking for alternative solutions. The problem is, that I haven't done much scripting in Acrobat.
    Pseudocode:
    Select Folder where PDF files are stored
    Create list of PDF files
    Get first page from each and add it to temporary new PDF
    Save temporary new PDF in high quality
    Would that be possible in Acrobat? And where would I start? I can't even find a Scripting Guide for Acrobat (like the ones for Illustrator and InDesign).. and there seems to be no sample scripts included either :-(
    Thanks,
    Thomas

    This can be done using a combination of an Action and a script. The script in the Action will collect the paths of the files you want to process and the folder-level script will extract the first page from each file and generate a new PDF from it. You don't need a plugin for this task, so you don't really need the SDK.
    The Acrobat JavaScript Reference can be found here: http://www.adobe.com/devnet/acrobat/javascript.html

  • How to extract the red layer from BayerRG8 file with VBAI?

    Dear readers,
    We're currentely trying to build a inspection program using a CVS and two cameras.
    A first question to help us: How can we extract the red layer from a Bayer RG8 image?
    To illustrate a lit bit more: lets take a picture of chilis and tomatoes plants. We would like to extract the red color of the picture to know where the vegetable are and if they are eatable.
    So, in a first time, we just want to see the red layer of the picture.
    On a second step, we would like to extract the poistion of the red areas and rank them according to intensities and store all the relevant data in a .txt file.
    Thank in advance for the time you will spend on that topic.
    Regards

    Maybe including a picture with the info you want would help. It sounds like you could use a detect object step (which works with color images), and you could get the position of all red objects. I would also recommend using the Hue plane instead of the Red plane to look for color since this is more robust to lighting changes. Once you have the bounding box for each red object, you can create a programmatic ROI around it and use the Measure Color step to get detailed color information about your reb objects. Here's a sample inspection that uses colored candy to give you an example of what I'm suggesting. Let us know if more specifically what you are looking for if this doesn't help. The example is in VBAI 2012. Let us know what version of VBAI you are using because this may affect what functionality you can use.
    Thanks,
    Brad
    Attachments:
    Color Example.zip ‏358 KB

  • Extract the Page Size from the Document Properties

    I have multiple drawings of various sizes and need to extract the page size from the document properties of each drawing.
    this.info object can be used to extract the title, author, subject etc of a document but there is no property shown for extracting the page size.
    Can any one please advise a way of extracting the page size from the document properties of a file?
    Any assistance will be most appreciated.
    Once the page size can be extracted I will be using a script to place a stamp with onto the drawing depending on the page size.
    Thank you.

    Thank you for your help George.
    I have used the getPageBox script as follows:
    var aRect = this.getPageBox("Crop");
    var width = aRect[2] - aRect[0];
    var height = aRect[1] - aRect[3];
    console.println("Page 1 has a width of " + width + " and a height of " + height);
    The console reports back - Page 1 has a width of 1162 and a height of 814.
    The actual drawing shows in the document properties page size as 40.988 x 28.713 cm.
    Can you please advise why the getPageBox measurement is not reporting correctly?

  • Extract the report into excel file

    how to extract the report into excel file?
    which function module i have to use ?

    Hi Pavan,
    If you want to download the displayed list in the Excel file,then at the time when the list is displayed on the screen, you can go to System option on the menu bar,from there go to List and then Save.You will get a pop up which shows you all the formats of download available.Select the one you want to and mention the target path of the file on the Presentation server.
    Secondly,you can use the T-codes "CG3Y" to download the data from the Application Server to the Presentation Server and T-code "CG3Z" for vice-versa.
    Or else you can use any of the FMs to first download the ABAP list to the ASCII or the BIN format and then convert it to excel using the FM "SAP_CONVERT_TO_XLS_FORMAT" or "TEXT_CONVERT_XLS_TO_SAP
    I hope I have tried to answer your query.
    In case of any further queries,please let know.
    Regards,
    Puneet Jhari.

  • To extract the users permission on files and folders in sharepoint 2010 using client object model

    To extract the users permission on files and folders in sharepoint 2010 using client object model

    Hello,
    This is sample code to get item level permisison: (Just written in notepad so it is not tested)
    public void ItemLevelPermission()
    SecurableObject curObj = null;
    ListItem curItem = ctx.Web.Lists.GetByTitle("LibraryName").GetItemById(ItemId); -> Use Id of file or folder.
    IEnumerable roles = null;
    roles = ctx.LoadQuery(
    curObj.RoleAssignments.Include(
    roleAsg => roleAsg.Member,
    roleAsg => roleAsg.RoleDefinitionBindings.Include(
    roleDef => roleDef.Name, // for each role definition, include roleDef’s Name
    roleDef => roleDef.Description)));
    ctx.ExecuteQuery();
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Extract the single archivelogfile from RMAN backup

    Hi,
    Can anyone tell me how to extract the single archivelogfile from RMAN which taken on primary database.
    This archivelogfile is required for recovering the standby database.
    Oracle version is 10.2.0
    Thanks in advacne.......

    user1813632 wrote:
    Hi,
    Can anyone tell me how to extract the single archivelogfile from RMAN which taken on primary database.
    This archivelogfile is required for recovering the standby database.
    Oracle version is 10.2.0
    Thanks in advacne.......Why you do not want searching in google or referring documentation?
    If you have backup of archivelogs then you can restore archivelogs(one or more) using below command
    rman>restore archivelog from sequence 20 until sequence 21

  • HT4623 I just updated my iPad 3 but myI just updated my iPad 3 but myiPhone 5 keep giving me a error message.  I don't have permission to access the requested resource, from iPhone and via my Apple Mac??????

    I just updated my iPad 3 but myI just updated my iPad 3 but myiPhone 5 keep giving me a error message.  I don't have permission to access the requested resource, from iPhone and via my Apple Mac??????

    If you think this is a bug, you can report it here:
    Apple - Mac OS X - Feedback

  • Extracting the largest code from a specific section in the report

    Post Author: MikeA-ICE
    CA Forum: General
    I have a report that has 8 sections, called Report Areas. Each area is limited by a range of codes (Group1). For the whole report the codes range from 01 to 93. There is one particular area in the report, Area 2, that spans 01 to 29. I need to extract the largest code from Area 2 but I never know from one time to the next when running the report what codes will be included. There could be any number of codes in a particular run of the report. I could have 1, 3,4,5, 7, 11, & 16 one time and 1, 2, 3, 8, 9, 12, 21, 23, and 28 the next. I tried this formula:If {CBIRptTotalSummary.ReportArea} = 2ThenNthLargest (1, {CBIRptTotalSummary.Group1})This consistently printed 93 in Area 2 of the report since 93 is the largest code of Group1 in the report. I've tried numerous other formulas and I can't get Crystal to look only at the groups contained in Area 2 and tell me what the largest group is in that area. How would I accomplish this? Thanks  very much for your help!!Mike

    Post Author: Jagan
    CA Forum: General
    Do you group on ReportArea?If so, it's the maximum(Group1, ReportArea)

  • How can I extract the two channels from a stereo track?

    Hi,
    I am writing a class that is able to draw an audio signal. It seems to be working well but I have a question. If I load a mono audio file I am able to draw it on a graph by using the byte[] array and everything is ok until now. That's the code:
    void Draw(byte[] x)
                Graphics g=getGraphics();
                Graphics2D g2=(Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,                     RenderingHints.VALUE_ANTIALIAS_ON);
                for(int i=0; i<x.length-6; i++)
                    g2.draw(new Line2D.Float(((i*(getWidth()-6))/x.length)+5, (getHeight()/2)-          ((x*(getWidth()-6))/x.length), (((i+1)*(getWidth()-6))/x.length)+5, (getHeight()/2)-     ((x[i+1]*(getWidth()-6))/x.length)));
    The results is correct only if I have a mono track. Obviously when I get a stereo track the array becomes very large so here the question. How can I extract the two audio channels from a stereo track?
    Thanks in advance.
    Maurizio Di Vitto                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    A mono audio stream is stored [sample, sample, sample, sample], so just a list of samples in an array.
    A stereo sample is interleaved in the same manner, so you get [left-sample, right-sample, left-sample, right-sample]
    So every nth sample is the 1st channel, every nth+1 is the 2nd channel...

  • How to extract the contents of ZIP file stored in oracle database column ?

    The file is in ZIP format and it is stored in BLOB databse column . The contents of file is in binary format .
    How to extract those contents from file and thus creating the same ZIP file as output in ODI ?
    Thanks
    Arun

    Perhaps you can something like what is described in the support note "How To Load A PDF File Or Other Binary Files To a BLOB Column From ODI (Doc ID 1412753.1)"

  • Extract the Attachment data from Adobe Reader 8

    Hi,
      We have a requirement to read the attachment data from adobe pdf. We are designing the PDF's in Adobe Live Cycle Designer ES. From the discussion i understand we can get the name and size of the attachment using dataobjects. But i need the content of the attachment. Let me know if there is any code to extract the attachment data.
    Thanks in advance.

    You can read the contents of an attached file using the doc.getDataObjectContents method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.475.html
    You'll just have to parse the contents correctly using JavaScript.

  • Import / export resources from files

    I have my resources in Excel sheet I would like to know possibility of importing it in Project server 2013. Any ideas or work around? 
    Regards, Syed Faizan ur Rehman, CBPM®,PRINCE2®, MCTS

    Hello,
    If this is one of exercise then just open the Enterprise Resource pool in Project Pro, make sure the data matches in the columns in the Enterprise Resource Pool and the Excel file then copy and past in the resources from Excel to Project.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • How to extract the Title info from multiple PDFs

    Is there a utility or some program that will extract the Title info (located in the Title field under the Description tab from Document Properties)? I have hundreds of PDFs that I would like to be able to have extracted into some txt file or excel file. Any ideas? Thanks!

    I was working on something similar but haven't had time to fully develop it.
    My idea was to use an envelope detector (low pass filter) and then use an energy detection VI on the envelope.
    Here's where I left off
    Anthony F.
    Product Marketing Engineer
    National Instruments
    Attachments:
    test.vi ‏331 KB

  • Extracting the date value from digital signature/certificate

    Hello,
    I'd like to extract the date from the signature properties and copy the value over to the date field as shown in snapshot.
    I am aware that we can change the appearance of the digital signature to make the date visible but in most case, it is too small to read on hardcopies.
    We resort by manually typing in the date, zooming into PDF to read visible date (if any) associated with signature image, to click on the signature image to open the Signature Properties dialog, or to open the Signatures tab window docked to the left.
    Manual typing in the date expose us to discrepancy problem when the PDF was created vs. the actual date the PDF was signed (date value associated with digital signature/certificate). For example, person A created a PDF with date typed in and then sent that file over to person B (approving the document), who may digitally sign it a few days later.
    Hope I am making sense.
    Regards,
    Devin
    Note: I have originally posted my question in other thread at http://forums.adobe.com/message/3296355

    You can get the data and other signature properties using the  signatureInfo field method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.756.html
    But for you application you really should be setting the date field before the signature is applied, since changing it afterwards would invalidate the signature. You can execute a script that sets the valud of the data field with the current date using the "Signaute Signed" event, which you'll see as one of the tabs of the signature field properties dialog.

Maybe you are looking for