Save sheet as a .prn, or a space delimited file

I need to be able to save my numbers file as a prn file, which I also believe to be a space delimited file. Does anyone know how i can do this?
Thanks in advance!!!!

I hate to apply different formatting tasks when the machine may do the job for me.
Here is a dedicated AppleScript :
--[SCRIPT columnsBySpaces]
Enregistrer le script en tant que Script : columnsBySpaces.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Dans la ligne d'en-têtes la plus haute, indiquer les largeurs de colonnes (en nombre caractères)
En l'absence de valeurs numérique, le script utilisera une largeur de 12 caractères.
Sélectionner les cellules à exporter
menu Scripts > Numbers > columnsBySpaces
Un fichier nommé "columnsBySpaces_aaaammjj-hhmmss.txt" sera créé sur le bureau.
Vous pourrez l'imprimer en utilisant une police de chasse constante.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
--=====
Save the script as a Script: columnsBySpaces.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
In the higher header row, enter the wanted widths of columns (characters numbers).
If there is no numerical value, the script use 12 characters by column.
menu Scripts > Numbers > columnsBySpaces
A file named "columnsBySpaces_aaaammjj-hhmmss.txt" will be created on the Desktop.
You will be able to print it using a monospaced font.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
Save this script as a … Script in the "Folder Actions Scripts" folder
<startupVolume>:Library:Scripts:Folder Action Scripts:
--=====
Yvan KOENIG (VALLAURIS, France)
2010/04/29
--=====
on run
set |largeurParDéfaut| to 12
my activateGUIscripting()
set {dName, sName, tName, rName, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
set lesLargeurs to {}
tell row 1
repeat with c from colNum1 to colNum2
try
set largeur to (value of cell c) as integer
if largeur = 0 then set largeur to |largeurParDéfaut|
on error
set largeur to |largeurParDéfaut|
end try
copy largeur to end of lesLargeurs
end repeat
end tell -- row 1
set lesLignes to {}
repeat with r from rowNum1 to rowNum2
tell row r
set uneLigne to {}
repeat with c from colNum1 to colNum2
set maybe to (value of cell c) as text
set largeur to item c of lesLargeurs
if (count of maybe) < largeur then
repeat until (count of maybe) = largeur
set maybe to maybe & space
end repeat -- until…
end if
copy maybe to end of uneLigne
end repeat -- c
copy my recolle(uneLigne, "") to end of lesLignes
end tell
end repeat -- r
set lesLignes to my recolle(lesLignes, return)
end tell
set nomDuRapport to "columnsBySpaces" & (do shell script "date " & quote & "+_%Y%m%d-%H%M%S" & quote) & ".txt"
set p2d to path to desktop
set p2r to (p2d as Unicode text) & nomDuRapport
tell application "System Events"
if exists (file p2r) then delete (file p2r)
make new file at end of p2d with properties {name:nomDuRapport}
end tell
write lesLignes to (p2r as alias)
end run
--=====
set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
on getSelParams()
local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
end if
return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
end getSelParams
--=====
set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
apply to named row or named column !
on decipher(n, d, s, t)
tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errMsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on parleAnglais()
local z
try
tell application "Numbers" to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
on decoupe(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end decoupe
--=====
on recolle(l, d)
local t
set AppleScript's text item delimiters to d
set t to l as text
set AppleScript's text item delimiters to ""
return t
end recolle
--=====
replaces every occurences of d1 by d2 in the text t
on remplace(t, d1, d2)
local l
set AppleScript's text item delimiters to d1
set l to text items of t
set AppleScript's text item delimiters to d2
set t to l as text
set AppleScript's text item delimiters to ""
return t
end remplace
--=====
removes every occurences of d in text t
on supprime(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return (l as text)
end supprime
--=====
on activateGUIscripting()
tell application "System Events"
if not (UI elements enabled) then set (UI elements enabled) to true (* to be sure than GUI scripting will be active *)
end tell
end activateGUIscripting
--=====
==== Uses GUIscripting ====
This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
It may be used to 'type' keyboard shortcuts if the third parameter describe the required modifier keys.
on shortcut(a, t, d)
local k
tell application a to activate
tell application "System Events" to tell application process a
set frontmost to true
try
t * 1
if d is "" then
key code t
else if d is "c" then
key code t using {command down}
else if d is "a" then
key code t using {option down}
else if d is "k" then
key code t using {control down}
else if d is "s" then
key code t using {shift down}
else if d is in {"ac", "ca"} then
key code t using {command down, option down}
else if d is in {"as", "sa"} then
key code t using {shift down, option down}
else if d is in {"sc", "cs"} then
key code t using {command down, shift down}
else if d is in {"kc", "ck"} then
key code t using {command down, control down}
else if d is in {"ks", "sk"} then
key code t using {shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "k" then
key code t using {command down, shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "a" then
key code t using {command down, shift down, option down}
end if
on error
repeat with k in t
if d is "" then
keystroke (k as text)
else if d is "c" then
keystroke (k as text) using {command down}
else if d is "a" then
keystroke k using {option down}
else if d is "k" then
keystroke (k as text) using {control down}
else if d is "s" then
keystroke k using {shift down}
else if d is in {"ac", "ca"} then
keystroke (k as text) using {command down, option down}
else if d is in {"as", "sa"} then
keystroke (k as text) using {shift down, option down}
else if d is in {"sc", "cs"} then
keystroke (k as text) using {command down, shift down}
else if d is in {"kc", "ck"} then
keystroke (k as text) using {command down, control down}
else if d is in {"ks", "sk"} then
keystroke (k as text) using {shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "k" then
keystroke (k as text) using {command down, shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "a" then
keystroke (k as text) using {command down, shift down, option down}
end if
end repeat
end try
end tell
end shortcut
--=====
--[/SCRIPT]
Of course, as I am lazy, I defined only four columns but you may work with more if you wish.
Yvan KOENIG (VALLAURIS, France) jeudi 29 avril 2010 16:16:05

Similar Messages

  • ... A tough Task,... Reading Space Delimited File

    Hi All,
    We have to read 2 Files ( Both Either Space or Tab Delimited) text Files.
    The records in the files are like ..
    SchoolID Teacher1 Teacher 2 Teacher 3 Teacher4
    SK001 TC001 TC002 TC003 TC004
    SK002 TC001 TC002 TC003 TC004
    I want to read and insert the records in School Tables which looks like
    School ID Teacher ID .................
    SK001 TC001
    SK001 TC002
    SK001 TC003
    SK001 TC004
    SK002 TC001
    SK002 TC002
    Had we want to insert record normally, we can use SQL* Loader which is a very effective and simple dataloading Tool ,
    But since we need to store differently from the one we originaly have in the Text file , May i know any utility oracle offers to read Text based Files.
    Thanx alot for your response and help
    Regards

    A tough task?
    Designing and writing an o/s kernel is a tough task. Convincing the boss that the marleting and sales "account manager" from vendor ABC is talking utter bs is a tough task. Getting a J2EE developer to grok the fundamentals of RDBMS is a tough task. Cleaning the old lead pipe after extensive use is a tough task.
    But this? I would not call it tough. If only most of the technical problems we face were this simplistic.
    Never let a problem intimidate you. They're almost never that tough.

  • With Netscape all of the Webcam shots from live feeds were automatically saved in my cache folder and I could simply open my cache send the saved files into AcDsee and convert them into jpgs, It would save as many as I would allow space for. With firefox

    I cant retrieve my images from webcams that are cached any more with mozilla. With netscape all of the live webcam images from live cams were automatically saved in my cache folder and all i had to do was open it send the files to acdsee and turn them into jpgs. It would save them untill the Cache ran out of room no matter how many files or sites I had running. Mozilla seems to save what it wants when it wants and often dose not save any that I can retrieve because I believe it is bulking them into Cache 123 or 4 and those i cant open to retrieve the files. Sometimes it saves 100 or so and sometimes 2 or 3 sometimes 10 or more but i don't seem to have any control over what it does or does not save to retrieve no matter how much space i allow for the cache to save.
    == This happened ==
    Every time Firefox opened
    == I finally gave up trying to keep netscape due to all the ridiculess popups and continued reminders from you saying i had to switch over

    You have or had an extension installed (Ant.com Toolbar) that has changed the user agent from Firefox/3.6.3 to Firefox/3.0.12.
    You can see the Firefox version at the top and the user agent at bottom of the "Help > About" window (Mac: Firefox > About Mozilla Firefox).
    You can check the '''general.useragent''' prefs on the '''about:config''' page.
    You can open the ''about:config'' page via the location bar, just like you open a website.
    Filter: '''general.useragent'''
    If ''general.useragent'' prefs are bold (user set) then you can right-click that pref and choose ''Reset''.
    See [[Web sites or add-ons incorrectly report incompatible browser]] and [[Finding your Firefox version]]
    See also http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default

  • How do I save music tin order to add storage space to my Ipod?

    How do I save music in order to add storage space to my Ipod?

    "if backed up the music on a Mac could I then re-load the tracks from it once the ipod has been formatted for Windows?"
    Yes you could, Macs can read Windows formatted iPods. If you only have the songs on the iPod, and have any iTMS purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there's a manual method of copying songs from your iPod to your Mac. The procedure is a bit involved but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
    If you prefer something more automated there are a number of third party utilities that you can use to retrieve music files and playlists from your iPod, this is just a selection. I use Senuti but have a look at the web pages and documentation for the others too, you'll find that they have varying degrees of functionality and some will transfer movies, videos, photos and games as well. You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    Senuti Mac Only
    iPodRip Mac Only
    PodWorks Mac Only
    PodView Mac Only
    iPodAccess Mac & Windows
    YamiPod Mac & Windows
    PodUtil Mac & Windows
    iPodCopy Mac & Windows

  • How do I save/export as a TAB or SPACE delimited text file?

    Just upgraded from Apple Works to iWorks. The only text exporting option I see is .csv. Comma separation really screws up my needs. Is there a way to export as plain text? TAB or SPACE delimited?

    Why not using the good old
    --[SCRIPT clipboard2textFile]
    on run
    set tsv to the clipboard as text
    set nomDuFichier to (do shell script "date " & quote & "+P%Y%m%d-%H%M%S" & quote) & ".txt"
    set p2d to path to documents folder as text
    tell application "System Events"
    make new file at end of folder p2d with properties {name:nomDuFichier, file type:"TEXT"}
    end tell -- System Events
    set leDoc to p2d & nomDuFichier
    write tsv to file leDoc
    end run
    --[/SCRIPT]
    I have it installed as:
    <startupVolume>:Users:<my account>:Library:Scripts:clipboard2textFile.scpt
    No need for an extra application.
    Copy to clipboard,
    trigger the script from the menu,
    the text file is available on the desktop.
    Yvan KOENIG (VALLAURIS, France.) lundi 24 août 2009 16:25:13

  • Export Excel Table in .txt File with space delimited text in UNICODE Format

    Hi all
    I've a big unsolved problem: I would like to convert an Excel table with some laboratory data in it (descriptions as text, numbers, variables with some GREEK LETTERS, ...). The output should be a formatted text with a clear structure. A very good solution is
    given by the converter in Excel "Save As" .prn File. All works fine, the formattation is perfect (it does not matter if some parts are cutted because are too long), but unfortunately the greek letters are converted into "?"!!!
    I've tried to convert my .xlsx File in .txt File with formatting Unicode and the greek letters are still there! But in this case the format is not good, the structure of a table is gone!
    Do you know how to save an Excel file in .prn but with Unicode formatting instead of ANSI or a .txt with space delimited text?
    Thanks a lot to everyone that can help me!
    M.L.C.

    This solution works in Excel/Access 2013.
    Link the Excel table into Access.
    In Access, right-click the linked table in the Navigation Pane, point your mouse cursor to "Export", and then choose "Text File" in the sub-menu.
    Name the file, and then under "Specify export options", check "Export data with formatting and layout".  Click "OK".
    Choose either Unicode or Unicode (UTF-8) encoding.  Click "OK".
    Click "Close" to complete the export operation.

  • Output required as formatted text (space delimited)

    I need to get the output of a query in a strictly defined space delimited text format. Can anyone advise if that is directly possible in BIP? Currently the method I am using is that I have created an excel template specifying all the formats (column width, number format, etc.), then during runtime, I run the report, open it in excel (with macros disabled), do a "Save As" to save it as a .prn file (Formatted text file), then rename the prn file to .txt
    This works although it is rather cumbersome. Any suggestions for simplifying the process?
    Thanks
    MS

    Thanks Vetsrini, this is precisely what I was looking for. But somehow I am not able to fit things together. I made the rtf format and uploaded into BIP as etext template, but when I view, it doesn't say anything. I saw one of your earlier posts where you had replied to a member's similar query, you had told that there is some problem with the template. Is there any log on the server where the errors are logged?
    And can you give the format for a simple query with just, say, 2 fields - empno and name (6 chars and 25 chars)? It would be great if you give the sample XML and the etext template. The one from the link you sent looks a bit complex.
    Thanking you in anticipation.
    Regards,
    MS

  • How to sum space delimited hex values in a string, and do other stuff?

    Hello
    I am trying to write a Bourne shell script that takes a non-constant-length character string as input, converts each character to hexidecimal value, sums each value, takes the two's complement of the sum, logically ANDS it with FF, and if any of the resultant "nibbles" are a-f, print/save that nibble as A-F, for later display as a two-character-long character string
    For example, assume a variable (as in non-constant) length variable $A
    A="w04:0;2"
    the road that I started down was to define
    B=$( echo $A | od -An -t x1 -N"${#A}" )
    # for this example, $B=77 30 34 3a 30 3b 32
    It's the middle part where I need some magic. What I want to do is add the whitespace-delimited hex values of this string, for this example
    C=77+30+34+3a+30+3b+32
    so for this example, $C=1b2
    then take two's complement of $C; for this example, $TWOS_COMP=ffff ffff ffff ffe4e
    and logically AND it with FF; for this example, almost-final answer is 4e
    then save final result as uppercase character string variable (for this example, variable's contents would be 4E)
    Is what I'm trying to do intuitively obvious to any of you gurus out there, that could rattle off an answer? I'm okay with trashing my approach thus far and trying something totally different, within the constraint that it run inside a Bourne shell script.
    Thanx in advance, if anybody can help!

    I've made progress. I've converted each character of a non-constant-length string $A into a space-delimited string of hex values, added them up, and retained the least significant byte (i.e., the 8 least significant bits). Here's how:
    B=$( echo $A | od -An -t x1 -N"${#A}" )
    D=0
    for C in $B; do
      C=0x$C
      D=$(($D + $C))
    done
    D=$(($D & 16#FF))
    D=`echo "ibase=10;obase=16;$D" | bc`
    The missing piece now is how to take the two's complement of $D. Anybody out there with any ideas on how to handle the two's complement piece inside a Bourne shell?
    Thanx

  • Importing space delimited iPad text files into number

    Lots of iPad app collect data as space delimited text files ( where is tab key on iPad) how can I import these files into numbers for analysis and plotting?

    Hi Wayne
    In the posted datas, some dates end with a period but some don't.
    Between values there are :
    period (not always. None after the 1st date and after the one just above "no scale travel to Tucson")
    space
    Given the source which I used, I got different spaces.
    In one case they were NO BREAK spaces
    In the example which you posted, the first missing period is revealed
    The second one isn't revealed because you didn't treated the entire set of datas.
    I assume that when there are datas after the decimal values, they are supposed to be in a 3rd column.
    Given these features, I wrote a script deciphering automatically the set of datas.
    Adjust the property « fromClipboard » to match what you use as source.
    --{code}
    --[SCRIPT split-table-from-ipad]
    Treat the set of datas imported from iPad by VerusEx
    see Apple Discussions forum :
    https://discussions.apple.com/thread/3879328?tstart=0
    Yvan KOENIG (VALLAURIS, France)
    2012/04/17
    property fromClipboard : true
    true = get datas from the clipboard
    false : get the datas from a text file
    on run
              if fromClipboard then
                        set lesValeurs to the clipboard as text
              else
                        set lesValeurs to read (choose file of type {"public.plain-text"})
              end if
    Instruction removing NO BREAK spaces which I got when I copied from the mail which I received from the forum.
              set lesValeurs to my supprime(lesValeurs, character id 160)
    Replace every groups of space characters by a single one
              repeat
                        if lesValeurs does not contain "  " then exit repeat
                        set lesValeurs to my remplace(lesValeurs, "  ", space)
              end repeat
    Replace single digit + space by single digit + tab.
    Useful to take care of cases when period is missing,
    or to split strings stored after a digit + a space
              repeat with i from 0 to 9
                        set lesValeurs to my remplace(lesValeurs, (i as text) & space, (i as text) & tab)
              end repeat
    Replace period + space by a tab
              set lesValeurs to my remplace(lesValeurs, ". ", tab)
    Save the deciphered datas in a temporary text file
              set leFichier to (path to temporary items as text) & "azertyuiop.txt"
              my writeTo(leFichier, lesValeurs, text, false)
    Open the temporary file in Numbers
              tell application "Numbers" to open leFichier
    end run
    --=====
    replaces every occurences of d1 by d2 in the text t
    on remplace(t, d1, d2)
              local oTIDs, l
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d1
              set l to text items of t
              set AppleScript's text item delimiters to d2
              set t to "" & l
              set AppleScript's text item delimiters to oTIDs
              return t
    end remplace
    --=====
    removes every occurences of d in text t
    on supprime(t, d)
              local oTIDs, l
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set l to text items of t
              set AppleScript's text item delimiters to ""
              set t to l as text
              set AppleScript's text item delimiters to oTIDs
              return t
    end supprime
    --=====
    Handler borrowed to Regulus6633 - http://macscripter.net/viewtopic.php?id=36861
    on writeTo(targetFile, theData, dataType, apendData)
      -- targetFile is the path to the file you want to write
      -- theData is the data you want in the file.
      -- dataType is the data type of theData and it can be text, list, record etc.
      -- apendData is true to append theData to the end of the current contents of the file or false to overwrite it
              try
                        set targetFile to targetFile as text
                        set openFile to open for access file targetFile with write permission
                        if not apendData then set eof of openFile to 0
      write theData to openFile starting at eof as dataType
      close access openFile
                        return true
              on error
                        try
      close access file targetFile
                        end try
                        return false
              end try
    end writeTo
    --=====
    --[/SCRIPT]
    --{code}
    Yvan KOENIG (VALLAURIS, France) mardi 17 avril 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • I am unable to save my form responses as a pdf or excel file.

    I am unable to save my form responses as a pdf or excel file.  The error message states: Acrobat.com could not save this file. The file might be open in another application and cannot be overwritten.

    Did saving ever work or did it fail the first time you tried?
    Have you tried to save to multiple locations?  Maybe it has something to do with permissions on the directory you are trying to save to.
    Have you tried saving something from another web site to the same location?  Try creating and saving a file in/from https://workspaces.acrobat.com/app.html#o and see if that has the same result.
    Thanks,
    Josh

  • My MacBook Pro keeps making copies of a document that I am trying to save. I don't want to duplicate the file. I only want to save it on both my hard drive and my external hard drive. I do not want to change its name for every save, which the computer see

    My MacBook Pro keeps making copies of a document that I am trying to save. I don't want to duplicate the file. I only want to save it on both my hard drive and my external hard drive. I do not want to change its name for every save, which the computer seems insistent on doing. Help!!

    11lizzyp wrote:
    can't be saved because the file is read-only.
    I did not create the file to be read-only. I created to be able to continue to add to it as I work on it.
    More on versions here:
    http://support.apple.com/kb/ht4753
    local snapshots:
    http://support.apple.com/kb/HT4878
    Sounds like a permissions problem ie read only.
    If running repair permissions from your DiskUtility.app does not sort it,
    Someone should jump in here with erudite and concise fix.

  • How to save info in a meta-data of a jpg file?

    hi, i need to know how to save info in a meta-data of a jpg file:
    this is my code (doesn't work):
    i get an exception,
    javax.imageio.metadata.IIOInvalidTreeException: JPEGvariety and markerSequence nodes must be present
    at com.sun.imageio.plugins.jpeg.JPEGMetadata.mergeNativeTree(JPEGMetadata.java:1088)
    at com.sun.imageio.plugins.jpeg.JPEGMetadata.mergeTree(JPEGMetadata.java:1061)
    at playaround.IIOMetaDataWriter.run(IIOMetaDataWriter.java:59)
    at playaround.Main.main(Main.java:14)
    package playaround;
    import java.io.*;
    import java.util.Iterator;
    import java.util.Locale;
    import javax.imageio.*;
    import javax.imageio.metadata.IIOMetadata;
    import javax.imageio.metadata.IIOMetadataNode;
    import javax.imageio.plugins.jpeg.JPEGImageWriteParam;
    import javax.imageio.stream.*;
    import org.w3c.dom.*;
    public class IIOMetaDataWriter {
    public static void run(String[] args) throws IOException{
    try {
    File f = new File("C:/images.jpg");
    ImageInputStream ios = ImageIO.createImageInputStream(f);
    Iterator readers = ImageIO.getImageReaders(ios);
    ImageReader reader = (ImageReader) readers.next();
    reader.setInput(ImageIO.createImageInputStream(f));
    ImageWriter writer = ImageIO.getImageWriter(reader);
    writer.setOutput(ImageIO.createImageOutputStream(f));
    JPEGImageWriteParam param = new JPEGImageWriteParam(Locale.getDefault());
    IIOMetadata metaData = writer.getDefaultStreamMetadata(param);
    String MetadataFormatName = metaData.getNativeMetadataFormatName();
    IIOMetadataNode root = (IIOMetadataNode)metaData.getAsTree(MetadataFormatName);
    IIOMetadataNode markerSequence = getChildNode(root, "markerSequence");
    if (markerSequence == null) {
    markerSequence = new IIOMetadataNode("JPEGvariety");
    root.appendChild(markerSequence);
    IIOMetadataNode jv = getChildNode(root, "JPEGvariety");
    if (jv == null) {
    jv = new IIOMetadataNode("JPEGvariety");
    root.appendChild(jv);
    IIOMetadataNode child = getChildNode(jv, "myNode");
    if (child == null) {
    child = new IIOMetadataNode("myNode");
    jv.appendChild(child);
    child.setAttribute("myAttName", "myAttValue");
    metaData.mergeTree(MetadataFormatName, root);
    catch (Throwable t){
    t.printStackTrace();
    protected static IIOMetadataNode getChildNode(Node n, String name) {
    NodeList nodes = n.getChildNodes();
    for (int i = 0; i < nodes.getLength(); i++) {
    Node child = nodes.item(i);
    if (name.equals(child.getNodeName())) {
    return (IIOMetadataNode)child;
    return null;
    static void displayMetadata(Node node, int level) {
    indent(level); // emit open tag
    System.out.print("<" + node.getNodeName());
    NamedNodeMap map = node.getAttributes();
    if (map != null) { // print attribute values
    int length = map.getLength();
    for (int i = 0; i < length; i++) {
    Node attr = map.item(i);
    System.out.print(" " + attr.getNodeName() +
    "=\"" + attr.getNodeValue() + "\"");
    Node child = node.getFirstChild();
    if (child != null) {
    System.out.println(">"); // close current tag
    while (child != null) { // emit child tags recursively
    displayMetadata(child, level + 1);
    child = child.getNextSibling();
    indent(level); // emit close tag
    System.out.println("</" + node.getNodeName() + ">");
    } else {
    System.out.println("/>");
    static void indent(int level) {
    for (int i = 0; i < level; i++) {
    System.out.print(" ");
    }

    Hi,
    Yes, you need store data to table, and fetch it when page is opened.
    Simple way is create table with few columns and e.g. with CLOB column and then create form based on that table.
    Then modify item types as you like, e.g. use HTML editor for CLOB column
    Regards,
    Jari

  • When I convert a pdf to word file, it show error "Save As failed to process this document. No file "

    Hi,
    I have just upgrade the creative cloud CC version and upgrade the acrobat pro to XI version.
    when I convert a pdf file to word format, it show the error "Save As failed to process this document. No file was created."
    Actually, I have delete the image, use other pdf file and download a sample pdf file to test it. Same error is shown. I have try all the other format , like the excel, rtf, text, powerpoint, still same thing happen.
    Please show me what else I can do to fix this problem.
    Thx.
    Alfred Li

    alfredadli wrote:
    Please show me what else I can do to fix this problem.
    Fisrt step would be to ask in the proper forum.
    http://forums.adobe.com/community/acrobat

  • Getting "save as" dialog box to auto populate when combining files in Acrobat X Standard

    In acrobat 9 the "save as" dialog box auto populated when I combined files, in Acrobat X it creates binder1 and then I have to click file and save as.  Is there a setting that I am missing so I do not have to do the extra step of file, save as?

    Hi cp-daytona,
    Please elaborate your issue and if possible then please attach the screenshot.
    Regards,
    Rahul

  • How do I save the text I have typed in a PDF file in Adobe, then mail it.

    How do I save text that I have typed in a PDF file in adobe and then mail it
    Currently goes through without text

    You don't have to do anything special to save text you type as an annotation or in a form. What's probably confusing you is that if you view the PDF within iOS apps like Mail, it appears the text you typed disappeared. However, when you view the PDF file in Acrobat or Reader on Mac, Windows or other platform, the text is there. (It's a limitation of the native iOS PDF viewers.)
    If you've updated to the newest version of Reader, you should also get a dialog offering the choice between "Share Original Document" and "Share Flattened Copy". The dialog explains the difference between the options.

Maybe you are looking for

  • Updated itunes and now it won't play any of my music, updated itunes and now it won't play any of my music

    i updated my itunes, and now it won't play any of my music. i tried deleting it and reinstalling itunes, but it still is doing the same thing: whenever i click on a song, it looks like it's going to play (and my last.fm thing starts scrobbling it) bu

  • Missing 'My Music' folder

    Please help, I am baffled. For the past 18 months I have used itunes with no problem. I have the My Music folder with the iTunes folder in my external hard drive. When I have the drive on itunes has had no problem seeing it, using it and updating my

  • Clients cant add printers

    Printers are installed on the server. DNS, OD working fine. Print service is turned on and started. The main printer is listed in the queue, and IPP, LPR (with Bonjour) are turned on. The client computers "see" the printer via Bonjour, but when I cli

  • CUP Risk Analysis Error

    Hi Experts, OUR GRC AC system configuration is: GRC AC 5.3 CUP Patch 7.0. One of our enduser has requested for a new role through CUP. While the manager performs the risk analysis, it is showing the following error: "Risk Analysis failed: Exception i

  • Shut down computer now won't connect to my network

    the computer has been connected to my wireless network for a few days, then last night i shut down the computer and when i started it back up this morning, it could not connect to my network and gave me an error saying "There was an error joining the