Save/restore in PostScript

Hi,
I'm student of SPbSU. I have the work "Compiling PostScript's programs into Java byte-code" in this year.
Can anyone explain, how does save/restore work with composite objects? How does "save" do the snapshot, when many composite objects share the same value. Does it change references?  How does PostScript restore their references afterwards ?  It is necessary to understand because it's not clear how to realize these operators in Java.
Thanks,
Artur.

You have an interesting challenge. The definition of the effect of save is in the PostScript Language Reference. There are no rules about how it is done. Because composite objects are large, they are not usually actually duplicated. There are a number of possible implementations, but one possibility is to store as part of the composite definition the level to which it belongs, then duplicate-on-write. You would probably need to implement your own primitive objects as classes, for all PostScript object types, rather than use the direct Java implementation because every type of PostScript object has special properties not available to Java (e.g. literal/executable). Really, you are writing a PostScript interpreter, be aware that this is likely to be many years of work.

Similar Messages

  • Printing "save as pdf postscript" yields problem with paper size

    when I "save as pdf postscript" my 8.5 by 8.5 pages doc, it shrinks and ends up right justified in the PDFX1A 2001 version...this only happens with this particular file--all I can think is that I used a lot of text wrapping around graphs and that messed it up, please help!

    nevermind! I figured out the problem--I needed to click on "view" and check "hide comments", which were being included in the PDF, making it smalled on the left side of the page
    thanks anyway AppleFolks

  • Save as PDF and Save PDF as PostScript options in the Printer dialog are not supported.

    I downloaded Indesign CS3 trial and liked everything about it until I attempted to print to postscript and got that message. Nothing I have tried has helped. I have seen in various forums that others are having the same problem, but haven't found any solution offered. I am running Tiger 10.4.10 on a new Intel Imac with 3G ram. This is a procedure I use very often in my workflow, and have never had this problem with CS2 on my PC or other Macs. Is there a solution? I downloaded the .1 update and installed that and it didn't change anything.

    PLEASE SOMEONE HELP ME.
    Its the first time Im using print booklet option to save my file. I have the same problem when trying to save as pdf and get the
    "The Save as PDF and Save PDF as PostScript options in the Printer dialog are not supported."
    I'm trying to save a .pdf of a booklet of a facing pages document of A4 size each facing page for a whole size A3, then hope to let the pages be correctly arranged by inDesing, then print and staple.
    Meaning pages will be like this - Page #60 left side [of the A3] - page #1 right side [of the A3] , page # 2 right side[of the A3] - page #59 left side[of the A3] etc...
    I CANT DO IT. I tried to follow Melvin Thompson , but when I choose save .ps and open it in preview all I see is independent a4 pages and just the left ones , .. How can I save my file as .pdf ready to be printed in a3 ?
    I really appreciate any help.

  • Save / Restore State Question

    When writing a custom component, does one need to save/restore the state of facets and children. Or is this done automatically?
    Thanks,
    Ryan

    you don't need to. Its taken care of by JSF.
    -Jayashri

  • Save/Restore Config using ASDM ?

    Hi Experts,
    Is it possible to Save/Restore the running/startup configuration of ASA using ASDM ?
    Just like we do on other firewalls like SonicWall, Cyberoam and all all , Save the configuration to a file on your local machine and then upload the file to restore the configuration . Is it possible using ASDM ?
    Regards,
    Anup

    Hi,
    I have personally never done this as I always rely on the CLI when doing anything related to the softwares and configurations.
    It seems though that the ASDM contains a backup/restore feature.
    You can check the "Tools" menu in the upper taskbar of the ASDM.
    It creates a compressed file of the ASA settings (and other material) which you to my understading later use with the restore option.
    The CLI format for backing up your configurations would be
    To external host with TFTP
    copy startup-configuration tftp://x.x.x.x/filename.xyz
    copy running-configuration tftp://x.x.x.x/filename.xyz
    To the ASAs Flash memory
    This enabled you to easily boot the old configuration from the file you have saved to the flash.
    copy startup-configuration flash:/filename.xyz
    copy running-configuration flash:/filename.xyz
    Also you can naturally just take "show running-config" or "show startup-config" from the CLI and copy/paste to a text document.
    Notice that the above formats doesnt include PSK or AAA server key information in clear text
    To view them in clear text use the command.
    more system:running-config
    Naturally if you have copied a configuration file to an external host or Flash memory you dont need to know the PSKs/AAA keys since they are already included in the configuration.
    - Jouni

  • Can not save PDF as Postscript

    After installing Acrobat 8 on a MAC Pro Intel OSX 10.4.10 I can not use the Print dialog and selecting PDF Save as Postscript. I keep geting the message, Saving A PDF when printing is not supported. This does not occur on a MAC G5 running OSX 10.4.10 only on my Intel MAC's.
    Anyone with Ideas?

    We own the rights to our product and license companies around the world to manufacture, promote and sell our products through this license.  We create the marketing tools for these companies to use to promote and sell this product.  Unfortunately, everyone downloads our materials and places them on their websites and then never looks at it again, so our materials on their sites are never the most current version.  It would be so much easier to control the materials if people we not taking from our site but just linking to the document.  They would open the same whether on their site or mine, but you get tired of explaining that.  All they hear is their web designers telling them that if you do that your sending your customers away from your site - blah blah blah  Unfortunately, even tho I inform them they have to do it this way, I can not make changes to their site and was looking for a work around.

  • Save/Restore Window content when hidden by other window

    I developed a swing application under UNIX/Linux.
    I have the problem, that the window content is not saved, when the window was hidden by another window. As soon as the swing window becomes (partly) visible again, paint() will be called, instead of restoring the previous content.
    I know, that the XServer has this possibility to save the window content. How can I configure this behaviour under Java/Swing?
    I tried do emulate this behaviour by first drawing into an offscreen buffer and then place this buffered image onto the frame, but it takes a lot of time and results in undesireable delays.
    Thanks for any idea,
    Alex.

    I would most like suggest that you open a support ticket.  It sounds as though something is wrong with the rendering output.  You shouldn't really be able to create such an incorrect rendering situation in the closed Web Dynpro framework.

  • Cookie Manager - use it to save/restore a particular cookie.

    Cookie Manager - http://cookiemanager.blogspot.com/
    Sometimes I login to a site & it seems to forget that I've been there & the info that I've input previously. That's particularily irritating if it's a game that I've taken to a high level.
    If there is doc to support it, I can't find the answer to my problem.
    The "Save" icon at the bottom-right doesn't appear to do anything, & I don't really want to save every cookie anyway.
    The "Export" icon at the bottom appears to save all the cookies in a single file, which means that I'd be restoring all my out of date cookies?
    What I want to do is to save one, or a few cookies & then be able to add/attach them to cookies already on the computer. Is this possible?

    Check out the cookie manager add on [https://addons.mozilla.org/en-US/firefox/addon/cookies-manager-plus/ Cookies Manager Plus] or a few others you can search for on that same site.
    In Preferences/Options > Privacy > History > Show Cookies..
    you can manage them manually as well.
    Hope this helps!

  • ZE5700 Bios save / restore help

    Hello, 
    I recently replaced the motherboard in my daughters Hp ZE5700 and now  windows XP will not complete installation and Im assuming it because the BIOS serial number, UUID and other information is missing. The replacment motherboard was the same model as the old one PN # 355478-001
    I  can still use the old motherboard since the reason for replacment was just a bad power jack. My question is, is there some way I can copy/save the information from the broken motherboard bios and then restore this info to the new motherboard after I reinstall it?
    I do know I can send this in for repair but Im sure the cost would be more than this old laptop is worth. The power jack has been replaced 2 times and is very badly burned this time and dont think its repairable.
    Any help would be greatly appreciated. 
    Bios version from old board
    Phoenix Bios 4.0 Release 6.0
    HP Notebook PC Bios Version KH.F.21

    Is it possible for you to post the string on top of your RAM socket at the bottom of both new and old motherboards?
    It should look like the following;
    31KT9MB00XX YYYY where X is numeric and Y is alpha-numeric
    There is a tool called cpqtag ( has to run in pure DOS disk ) from the following url
    http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1268967836844+28353475&...
    You may want to use to enter the old serial number from old motherboard to the new motherboard to see if it can resolve your problem for you.

  • Iphone 4 save restore in Itunes blocked

    Hi all,
    I'm totally lost, after have done the last IOS update (which should be light at the beginning) I was obliged to do a global restore of my Iphone 4.
    It's the beginning of the troubles :
    after restoring, i wanted to catch up my last backup version into Itunes (unfortunately dated from january... but it's better than nothing) but when I click the button Restore the last backup into Itunes, it asks me a password... I've try all my passwords used (PIN, iphone, Itunes, etc...) but every time i've the same error message : " Itunes could not restore the iphone because the iphone is offline".
    I have tried to reboot, my computer, my phone, change the USB plug many times, etc... but nothing works, i have always this message whatever the password I use.
    I begin to be crazy, i lose all my contacts, numbers, notes, pictures, etc... so i'm totally blocked, help me please
    thanks in advance
    Eric

    @Minytrini
    I had another go at  uninstalling itunes and this time something called Apple mobile support ,then reinstall , i think the first time i connected the phone i did something wrong ,  But it works fine now :-)
    good luck to ya.
    FHJ68

  • Backup/save/restore voice memos iPhone 5c and iTunes 11.4

    In the music tab I have it checked to include my voice memos but I can't find them in iTunes.  I search by name; nothing.  No playlist, no section in music.  They are nowhere.  I can use iBrowse to grab them, but they are all just a bunch of numbers and composition folders... that's not very useful. 

    The following has a section on how to find them in iTunes that may help: http://www.idownloadblog.com/2014/02/23/how-to-transfer-voice-memos-iphone-compu ter/

  • Save and restore Apple Mail settings (Mail version 7.3x)

    Can anyone assist with hints as to how to save/restore the GUI and other individual settings in Apple Mail (Version 7.3, Build 1878.2)?
    In earlier mail version this could easily be done by simply saving & restoring the "apple.mail.pst" file. Thanks.

    Greetings,
    I don't think you would have to use Time Machine at all for this; that would only complicate things. Instead try this:
    Quit Mail if it's running.
    Go to Home/Library/Mail and remove your IMAP mailbox. and any Envelope Index file.
    Restart Mail and wait for the index to rebuild, and with any luck it should download your email again, but only once. If so, then your problem would appear to be solved.

  • Illustrator CS3 Save as Postscript Issue

    Utilizing Illustrator CS3 on Mac OSX Tiger -
    Unable to output Postscript file. Getting the following error message: "The Save as PDF and Save PDF as PostScript options in the Printer dialog are not supported."
    However, we are able to output Postscript from same computer in Illustrator CS2 without issue. Note that in CS3 it is also prompting to re-enter the file name when saving but not in CS2.
    Any advice is appreciated.
    Thanks!!

    Are you trying to "Print" to a Postscript File?
    For "Printer" choose "Adobe Postscript" and for PPD choose "AdobePDF"

  • Does firefox create multiple restore sessions and save them?

    Sometimes my computer crashes twice in a row, or things happen similar to this. When this happens, the "Restore Session" is not available on the history dropdown menu. Why is that? Is there a way to make this happen? No way can I go through the total history - thousands of websites and some don't say what they are when looking at the URL or title. I don't want to save all the time - this is a basic function that could easily be done automatically.
    Is there a solution to this?

    Firefox should not be crashing, if t is maybe that is something to investigate.
    Firefox does try to save Restore Sessions, but if you close down incorrectly or crash frequently they are going to get messed up.
    Always try to close correctly, which on an XP will be by using the File option (Newer Windows sytems have the quit option under the new Firefox Button)
    Have a look at the article
    * [[Restore previous session - Configure when Firefox shows your most recent tabs and windows]]
    * and also possibly consider [[firefox hangs#w_delete-duplicated-session-restore-files]]_delete-duplicated-session-restore-files
    If you are getting crashes see [[firefox crashes]]

  • Putting CJK text into PostScript file

    Our application, as one of several export options, generates PostScript files.  We recently added support for UNICODE text to the application - all internal text is utf16.  I am having trouble exporting asian (CJK) fonts correctly.  Before the switch to UNICODE we supported ShiftJIS for Japanese.  I know that PS does not directly support UNICODE.  So, my question is, what is the best way to proceed given the facts that I have UNICODE text and I must generate a correct PS file which will display that text?
    To my pea-sized brain, it looks like there are two possible paths...
    1. Convert the utf16 to ShiftJIS (or whatever code page is required) and export as before?  This seems doable, but strikes me as a hack since I would need to look at each code point and figure out which code page it is related to.
    2. Re-encode the font?  But how?  I've looked at documentation for CID-keyed fonts and some sample code for re-encoding, but I admit that I have not yet had an aha! moment. I'm not even sure if I'm looking at the correct stuff.
    Also, do we need to embed the font(s)?  (I realize that CJK fonts can be large, but file size is not a major consideration.)
    Thanks for any help.

    At this point embedding & reencoding appear to be more advantageous from what I understand of your project.
    I have written PostScript drivers that embed Type 1 format fonts by converting the binary printer font (.pfb) file into a 7-bit ascii PostScript file and inserting that in the PostScript output stream. The font just needs to be inserted so that it is available in the context of when it will be used (ie. before font use and same or more significant save/restore level.
    I have also reencoded font characters within a PostScript job in order to access special characters that didn't exist in an EBCDIC character table using octal codes, but I'm not sure if this will suit your solution 2 or not.
    Code sourced probably sourced from Adobe Developer Kit of many years ago:
    /reencsmalldict 12 dict def
    /ENC
    {reencsmalldict begin
    /newcodesandnames exch def
    /newfontname exch def
    /basefontname exch def
    /basefontdict basefontname findfont def
    /newfont basefontdict maxlength dict def
    basefontdict
    {exch dup /FID ne
    {dup /Encoding eq
    {exch dup length array copy newfont 3 1 roll put}
    {exch newfont 3 1 roll put}
    ifelse
    {pop pop}
    ifelse
    }forall
    newfont /FontName newfontname put
    newcodesandnames aload pop
    newcodesandnames length 2 idiv
    {newfont /Encoding get 3 1 roll put}
    repeat
    newfontname newfont definefont pop
    end
    } def
    /EVEC [
    8#030 /mu
    8#031 /eth
    8#032 /Yacute
    8#033 /brokenbar
    8#034 /onehalf
    8#200 /Aacute
    8#201 /Acircumflex
    8#202 /Adieresis
    8#203 /Agrave
    8#204 /Aring
    8#205 /Atilde
    8#206 /Ccedilla
    8#207 /Eacute
    8#210 /Ecircumflex
    8#211 /Edieresis
    8#212 /Egrave
    8#213 /Iacute
    8#214 /Icircumflex
    8#215 /Idieresis
    8#216 /Igrave
    8#217 /Ntilde
    8#220 /Oacute
    8#221 /Ocircumflex
    8#222 /Odieresis
    8#223 /Ograve
    8#224 /Otilde
    8#225 /Scaron
    8#226 /Uacute
    8#227 /Ucircumflex
    8#230 /Udieresis
    8#231 /Ugrave
    8#232 /Ydieresis
    8#233 /Zcaron
    8#234 /copyright
    8#235 /registered
    8#236 /trademark
    8#237 /aacute
    8#240 /acircumflex
    8#260 /adieresis
    8#265 /agrave
    8#276 /aring
    8#300 /atilde
    8#311 /ccedilla
    8#314 /eacute
    8#321 /ecircumflex
    8#322 /edieresis
    8#323 /egrave
    8#324 /iacute
    8#325 /icircumflex
    8#326 /idieresis
    8#327 /igrave
    8#330 /ntilde
    8#331 /oacute
    8#332 /ocircumflex
    8#333 /odieresis
    8#334 /ograve
    8#335 /otilde
    8#336 /scaron
    8#337 /uacute
    8#340 /ucircumflex
    8#342 /udieresis
    8#344 /ugrave
    8#345 /ydieresis
    8#346 /zcaron
    8#347 /logicalnot
    8#354 /minus
    8#355 /threesuperior
    8#356 /thorn
    8#357 /twosuperior
    8#360 /yacute
    8#362 /threequarters
    8#363 /Eth
    8#364 /onequarter
    8#366 /Thorn
    8#367 /divide
    8#374 /plusminus
    8#375 /multiply
    8#376 /onesuperior
    8#377 /degree
    ] def
    /WE {EVEC ENC}def
    /HLN {/HLNWE findfont}bind def
    /Helvetica-Narrow /HLNWE WE

Maybe you are looking for

  • How can i set a song as a ringtone on my ipod touch ?????

    How can i set a song as a ringtone on my ipod touch

  • Can't create Java Object in ASP

    Hi: I'm attempting to incorporate a Java class that uses the following packages into an .ASP page import java.security.*; import java.io.*; import java.net.URLDecoder; import java.util.*; import javax.crypto.*; import com.sun.crypto.provider.SunJCE;

  • Error when rendering! Desperately in need of help!

    Just out of nowhere I´m getting this error when rendering in a ProRes project: "Codec not found. You may be using a compression type without the corresponding hardware card" I have done nothing with my setup and have never had problems with this befo

  • Album 2.0 - Dateiimport, Datei zu groß

    Habe immer wieder die Fehlermeldung "Diese Datei ist zu groß", wenn ich versuche, eingescannte Dias von der Festplatte zu importieren Format JPEG 1-3 MB. Gibt´s irgendwo eine Einstellung?

  • About:config

    about:config defaults to Yahoo as the default search engine, SCREW YAHOO, I want GOOGLE as the default everything. Why can I not modify it to Google instead of Yahoo?