Flying Saucer and utf encoding

Hello,
This post is on the heals of a former post of another user.
http://forum.java.sun.com/thread.jspa?threadID=5265104&messageID=10105301
I am using Flying Saucer in a J2EE application. The server is configured to encode using UTF-8. I required to keep this setting. I would like to know if there is a way to change the default character encoding from latin to UTF-8. It seem like there should be a method to set the encoding.
I am aware of this instruction on https://xhtmlrenderer.dev.java.net/r7/users-guide-r7.html#configuration
import com.lowagie.text.pdf.BaseFont;
ITextRenderer renderer = new ITextRenderer();
FontResolver resolver = renderer.getFontResolver();
resolver.addFont (
"C:\\WINNT\\Fonts\\ARIALUNI.TTF",
BaseFont.IDENTITY_H,
BaseFont.NOT_EMBEDDED
However,
This does not work for me because the instantiation of the ITextRenderer object is what gives me runtime exceptions.
I commented everything out left this line ITextRenderer renderer = new ITextRenderer(); and I still get runtime exceptions.
Any help would be greatly appreciated,
Thanks.

ok i have hurdled on obstacle. I forgot to put /resources/conf/xhtmlrenderer.conf into the classpath.
now i have another problem.
the following code will not work for me, because i do not have ARIALUNI.TTF.
ITextRenderer renderer = new ITextRenderer();
FontResolver resolver = renderer.getFontResolver();
resolver.addFont (
"C:\\WINNT\\Fonts\\ARIALUNI.TTF",
BaseFont.IDENTITY_H,
BaseFont.NOT_EMBEDDED
I did try using ARIAL.TTF, but that did not work. It give me the same error as if I did not use the FontResolver.
In other words
=================================================================
CodeSnippet1
=================================================================
String inputFile = "test.xhtml";
String url = new File(inputFile).toURI().toURL().toString();
String outputFile = "firstdoc.pdf";
OutputStream os = new FileOutputStream(outputFile);
ITextRenderer renderer = new ITextRenderer();
ITextFontResolver resolver = renderer.getFontResolver();
resolver.addFont ("C:\\WINDOWS\\Fonts\\ARIAL.TTF", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
renderer.setDocument(url);
renderer.layout();
renderer.createPDF(os);
os.close();
=================================================================
=================================================================
CodeSnippet2
=================================================================
String inputFile = "test.xhtml";
String url = new File(inputFile).toURI().toURL().toString();
String outputFile = "firstdoc.pdf";
OutputStream os = new FileOutputStream(outputFile);
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(url);
renderer.layout();
renderer.createPDF(os);
os.close();
=================================================================
CodeSnippet1 and CodeSnippet2 gives this exception.
org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer). java.io.IOException: Stream closed
     at org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:191)
     at org.xhtmlrenderer.resource.XMLResource.load(XMLResource.java:71)
     at org.xhtmlrenderer.swing.NaiveUserAgent.getXMLResource(NaiveUserAgent.java:205)
     at org.xhtmlrenderer.pdf.ITextRenderer.loadDocument(ITextRenderer.java:102)
     at org.xhtmlrenderer.pdf.ITextRenderer.setDocument(ITextRenderer.java:106)
Again any help will be greatly appreciated.

Similar Messages

  • What do I do with an old Extreme Flying Saucer and AX?

    Hello,
    A friend just gave me an old Airport Extreme Base Station (the old flying saucer model, number A1034) and an Airport Express (A1084). We wired our house for a LAN, and I have a Netgear wireless router, so I don't need a primary wireless service. However, I'd like to use both devices to extend my wireless. I could connect both to the router via ethernet. Is this a good use? Should I bother? I'm pretty sure the NGear router is a G, not an N. Blazing wireless speed is not a huge issue. How do I configure each device? Thanks!

    With your house wired for LAN, you could use both of the AirPorts, along with your Netgear router, to establish a "roaming" network. With this type of network, you could literally roam with a laptop from one part of the house to another without switching wireless networks.
    Basically, you would place the AirPorts at locations where you are not getting a strong wireless signal from the Netgear. Each AirPort would connect to the same Ethernet backbone that ties back to the Netgear, and thus, all of the routers would be on the same Ethernet subnet. In turn, each of the AirPorts would need to be reconfigured as bridges and use the same Network Name (SSID) as the Netgear.

  • Flying Saucer encoding problem

    Hi, i have a problem with encoding when creating pdf using Flying Saucer. I have xhtml document in UTF-8 and because I'm from the czech republic, i need to use several specific extended characters. The problem is, that Flying Saucer's default encoding is Latin1 (ISO-8859-1), which doesn't support these characters. In the documentation of the FS I have read that you can add specific fonts to support specific encoding by adding font to the font resolver of ITextRenderer class:
    ITextRenderer renderer = new ITextRenderer();
    FontResolver resolver = renderer.getFontResolver();
    resolver.addFont (
    "C:\\WINNT\\Fonts\\ARIALUNI.TTF",
    BaseFont.IDENTITY_H,
    BaseFont.NOT_EMBEDDED
    where "C:\\WINNT\\Fonts\\ARIALUNI.TTF" is the font, "BaseFont.IDENTITY_H" specifies the encoding (in this case UTF-8) and "BaseFont.NOT_EMBEDDED" is another attribute, not important for now.
    But even if I add the font this way, the FS still uses LATIN1 encoding and these characters are displayed wrong. Does anyone know, how to tell FS to use the UTF-8 encoding instead of the default one? Is there anything more I have to set? I was searching the internet and whole documentation for ages but wasn't able to find anything:( any help appreciated..thx

    Anyone had problem with bolding text which font is different than default??
    For example
    renderer.getFontResolver().addFont(fonts\\TAHOMA.TTF", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
    //or even
    renderer.getFontResolver().addFont("fonts\\TAHOMA.TTF", true);{code}
    and in document
    {code}<font style=\"letter-spacing: 0px; color: #000000; font-size: 10px; font-family: Tahoma; font-weight:bold; \"><strong>bold test</strong></font>{code}
    It just won't get bold.. Works fine with default font...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • UTF encoding issues on file adapters and mappings

    Hi,
    We did some tests regarding to UTF-8 and UTF-16 encoding using file adapters. Our conclusion so far is (when using Windows OS):
    1. Inbound adapter can handle UTF-8 and UTF-16 correctly, but do not specify the encoding!
    2. XI mappings will set the XML encoding to UTF-8 correctly when sending an UTF-16 file to XI.
    3. Outbound adapter can only handle UTF-8 (and US-ACSII and ISO-8859-1) correctly.
    The exact test results are:
    >>Outbound file adapter bug.
    If no encoding is specified in the outbound file adapter, UTF-8 and UTF-16 are handled correctly. However if the encoding is set to UTF-16, XI mapping will fail with the error:
    During the application mapping com/sap/xi/tf/_CHRIS_OUTBOUND_TO_INBOUND_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
    Part of the trace:
    com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_CHRIS_OUTBOUND_TO_INBOUND_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) a0d, a0d, 6e3c(:main:, row:3, col:2) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:72) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:78) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest
    >>Inbound file adapter bug.
    If the encoding of an inbound file adapter is set to UTF-16 everything works ok (except the XML encoding is not set correctly, but this may be a mapping issue and not an adapter issue). However the default UTF-16 encoding seems to be UTF-16BE, where I would expect UTF-16LE since this is the most commonly used encoding.
    If the encoding UTF-16LE or UTF-16BE the characterset used in the message is correct, except the BOM of the file. The BOM is empty which means UTF-8 encoded file. Since the file is UTF-16BE or UTF-16LE encoded, this is wrong and the correct BOM should be added by the adapter.
    Encodings like US-ASCII and ISO-8859-1 are handled correctly.
    >>Mapping bug
    When we send in a message encoded in UTF-8 and want to send it out as a UTF-16 encoded message, we need to set the XML encoding to UTF-16. Normally this is done by an XSLT mapping using the <xsl:output encoding=”UTF-16”/> command.
    The UTF-8 message will get processed by the XSLT and any special character will be converted to its UTF-16 value. However the output message is not UTF-16 encoded (1 byte in-stead off 2 bytes).
    When this 1 byte message is send to the inbound adapter (encoding is set to UTF-16) the message will be translated from 1 byte to 2 byte (UTF-8 to UTF-16). The characters that were converted from UTF-8 to UTF-16 will be read as single byte characters and will be converted again. This will result in an incorrect message with illegal characters.
    So basically characters will be converted to UTF-16 2 times, which is incorrect.
    Maybe someone can confirm this on another XI system (maybe different OS). If you need test files or mapping, please let me know.
    Kind regards,
    Christiaan Schaake.

    Update after carefully reading all the UTF related documents on the internet.
    For UTF-16 the BOM is required and the adapter is handling this correctly. (encoding=UTF-16 will create the BOM).
    For UTF-16LE and UTF-16BE the BOM must not be set. The application should be able to handle the conversion. The adapter is working correct again.
    If the adapter is set to binary mode in stead of the text mode, the file will always be read correctly.
    About the mapping issue, I'm still experimenting with this one.
    Kind regards,
    Christiaan Schaake.

  • More questions re: UTF-8 and Latin encoding

    Hi
    I've really tried to do my homework before posting here, so I hope I'm not double-posting...
    I've read all the discussions I can find, followed instructions on http://homepage.mac.com/thgewecke/iwebchars.html and spoken twice to my ISP who provides the hosting service.
    My ISP is, of course, forcing the browser to interpret the HTML as Latin, and if I change it manually to UTF-8, my page looks fine.
    My ISP is, of course, blaming Apple, saying that Macs use a slightly different UTF-8 Character set. I suspect that's bullocks.
    My ISP is also blaming iWeb, saying that it is designed to only work with .mac. I've said that's not the case, that it can publish seperately to a folder for FTP upload.
    My ISP insists that correctly coded UTF-8 pages will work fine, and that their server is not forcing the browser to interpret it any way or the other.
    Is there any way I can prove that the HTML is correct, and that the server IS forcing browsers to interpret the character set as Latin?
    If I can prove that, then I believe I have a valid case for them to change it, and accept the problem is theirs.
    I would greatly appreciate suggestions from those who understand these matters better than me. Including, if you think it appropriate, what my next approach to the ISP should include...?
    Many thanks to anyone who takes the time to help.
    Kind regards
    Steve
    PS I should also mention that my ISP does not allow .htaccess files to be placed, administered, or used by users.
    Can't get another host. Can't afford .mac.

    All the statements made by your ISP are totally wrong, of course. If you want to prove that their server forces Latin-1, you can put your url into a site like this one:
    http://web-sniffer.net/
    It shows that the HTTP response header sent from their server tells all browsers that "Content-Type: = text/html; charset=iso-8859-1"
    From your description it doesn't sound like they are capable of understanding this problem or fixing it for you. If that is true, and if you really have no other choice, I would suggest that before uploading you open your pages with TextEdit (set to Plain text, ignore rich text commands in html, and UTF-8 encoding) and just do Save As after setting the encoding to Western ISO Latin-1.

  • What is the life expectancy of the older base stations (flying saucer/spaceship looking one) and what are the telltale connection signs that it's starting to go?

    What is the life expectancy of the older base stations (flying saucer/spaceship looking one) and what are the telltale connection signs that it's starting to go? Also, are there any compatiility issues with newer models and G5/G4s?

    What is the life expectancy of the older base stations (flying saucer/spaceship looking one) and what are the telltale connection signs that it's starting to go?
    Apple has never published any life expectancy specifications for any of their routers (or desktops/laptops) that I am aware of. As a rule of thumb, I would consider two years for any consumer electronics that operates 24 x 7 to be a reasonable period. Obviously some experience more or less and it would depend on a number of factors: ambient temperature, electrical circuit stability, area prone to lightening strikes, etc.
    Some telltale signs that an AirPort has (or is about to fail):
    Status lights are not illuminated or do not match any of the known configurations.
    Unit feels cool to the touch after power is applied even after a lengthly (15-30 minutes) period of time.
    Unit refuses to intialize, even after performing multiple "factory default" resets.
    Weak or no wireless signal.
    Ethernet port(s) not functioning
    Etc.
    Also, are there any compatiility issues with newer models and G5/G4s?
    Three potential issues:
    Depending on the version of OS X you are running on these clients, they may not be able to support the latest AirPort Utility required to administer the latest AirPorts. OS X 10.5.7 is the minimum required.
    Support for 802.11n connectivity. Most G5 or G4 Apples support 802.11g, some only 802.11b.
    Support for WPA2. Not supported if the G5 or G4 is equipped with the Original AirPort Card.

  • What is the story with Java and UTF-8

    Im getting bits of info about java and utf-8, things like
    "unless you wrap the FileInputStream, you'll get exceptions with UTF-8 encoding"
    So can someone tell where there is a good resource for detailing problems / advice when dealing with utf-8 encoded data???
    or
    Give me the low down and what the dodge actually is?
    Sorry for my poor English - im a scally
    Many thanks

    1) you've chosen SAX probably because it sticks well to your business requirements (i hope ;-), so keep it!
    2) i am using both James Clark's XP and Xerces as my SAX parsers (XP for big volumes because it offers better performances): i am processing only UTF-8 encoded files with no problems,
    3) sure, if you hit some troubles post again and a lot of pair of eyes will look into it!

  • Need help with flying saucer special effect

    Hi--I want to create an effect in iMovie 9 of a flying saucer flying through the sky and then landing in a large open field, much like the scene in the 1951 version of "The Day the Earth Stood Still."
    Does anyone have ideas or tips how to do this? Thanks.

    2y ago (OMG! it's three years ago!!), I made a StarWars fanproject with my lil son (the old beta version of the website still alive here) ...
    all the droids and spaceships were created in some very cheap animation app, which allowed a socalled alpha-chanel - the background was 'transparent') - in FinalCutExpress you add a 2nd layer - compositing done.
    in iM08 you could follow my advice for overlaying stills http://karsten.schluter.googlepages.com/im08_logobug
    in iM09, you can 'abuse' the greenscreen effect for compositing... film UFO model moving before a green background and take a foto of your background scenery.
    or, build a model of your UFO and use fishing line for 'animation' while recording scenery - the line will be invisible...-

  • How we represent largest code point in UTF-8 and UTF-16 whats the differenc

    how we represent largest code point in UTF-8 and UTF-16 whats the differenc
    points will be awarded

    There are standards from for CHARACTER encoding.
    See below for a brief description:
    UTF-16 (16-bit Unicode Transformation Format) is a variable-length character encoding for Unicode, capable of encoding the entire Unicode repertoire. The encoding form maps code points (characters) into a sequence of 16-bit words, called code units. For characters in the Basic Multilingual Plane (BMP) the resulting encoding is a single 16-bit word. For characters in the other planes, the encoding will result in a pair of 16-bit words, together called a surrogate pair. All possible code points from U0000 through U10FFFF, except for the surrogate code points UD800–UDFFF, are uniquely mapped by UTF-16 regardless of the code point's current or future character assignment or use.
    UTF-8 (8-bit UCS/Unicode Transformation Format) is a variable-length character encoding for Unicode. It is able to represent any universal character in the Unicode standard, yet the initial encoding of byte codes and character assignments for UTF-8 is consistent with ASCII (requiring little or no change for software that handles ASCII but preserves other values). For these reasons, it is steadily becoming the preferred encoding for e-mail, web pages, and other places where characters are stored or streamed.
    Check this site for details.
    http://unicode.org/.

  • Url and File Encoding

    I have the following scenario:
    I have a directory which has directory names and filenames encoded in what I believe is utf-8 (the content is html). The files are derivates of DMOZ/World so they are in various languages. I can see accent marks and cryllic/greek, etc in the windows file explorer.
    I need to zip this directory up (using java) and then upload it to a server and then unzip it using php. I am uncertain what encoding the server is using.
    Do I UTF-8 Urlencode the file names and file paths and then zip and upload?
    If so then do I need to also urlencode the links within the html?
    thanks

    It's not a bug, it's a lack of a feature.
    The design of the Zip format requires a filename to be stored as bytes in the archive, but doesn't specify what encoding should be used to do that. Back in the days when the format was invented, that didn't matter because you could only use ASCII characters in filenames anyway.
    Then when Unicode started infiltrating file systems, there was nobody powerful enough to fix the format by specifying an encoding, and the big players in the archiving field didn't care because the way they did it was de facto correct anyway as far as they were concerned.
    I don't know how Microsoft and WinZip encode their filenames these days, but at any rate Java's zip classes don't even provide the option to specify an encoding. I am pretty sure that several bug reports have been filed in regard to this missing feature but I don't believe anything has been done yet.

  • Accented characters and UTF-8

    Hi all,
    I have a problem with accented characters. I read that Plumtree 5.0 is completely Unicode enabled and all HTTP responses from remote web services are converted to Unicode (UTF-16). So the portal sends back to the client browser all pages in UTF-8.
    We have a lots of portlet (ASP and JSP) that write data in external DB, for example SQLServer. When I fill an html form with accented characters that have to be saved in our DB, they are saved in UTF-8 because the gateway converts the HTTP response. We want that the data are saved as if we don't use the portal (without conversion). I tried to change the Charset with the ASP code (Response.Charset). This solves only the problem of displaying the right characters in the browser.
    Could you explain me better how the portal make the conversion and how can I solve my problem?
    Thank you very much,
    Alberto Marchiaro

    It might be helpful to clarify a few things first: 1. Both Java and VB Script will store strings in UTF-16/Unicode. If you have some code in your ASP file that looks like this: Dim strDatastrData = Request.Form("SomeName") then if you were to examine memory for the variable strData, you would see 16 bit characters. The same is true for Java. 2. String data is almost never sent over HTTP as UTF-16/Unicode. 3. Both Java and VBScript perform an implicit character set transcoding when reading string data out of a request or when writing string data out to a response. 4. ASP will perform the transcoding according to the value of the Session.CodePage value. If you have Session.CodePage to 65001, then ASP will expect the string data to be in UTF-8 and it will transcode UTF-8 in the request into UTF-16 in VB Script. Similarly, a Session.CodePage value of 65001 will cause "Response.Write" to convert UTF-16/Unicode into UTF-8. 5. All of the above is separate from how Java or VB Script interact with the database. Generally speaking an ASP module will use ODBC to communicate with the database. The ODBC layer knows that VB Script keeps strings in UTF-16/Unicode. The ODBC layer will perform the proper conversion into the database character set. Plumtree always recommends using UTF-16/Unicode in the database. You can do this relatively easily by declaring your database columns using the "N" datatypes such as NCHAR and NVARCHAR. However even if you using some other character set, the ODBC layer should always properly transcode from VBScript. The importantly thing to remember is that data that is sent over HTTP is never written directly to the database without going through some ASP or JSP code. Since the ASP and JSP code always uses UTF-16/Unicode, there should never be any issue with how the data is sent over HTTP. Here is an explanation for how Session.CodePage, Response.CharSet and Session.LCID work in ASP:****************************************************
    1. Response.CharSet
    2. Session.CodePage
    3. Session.LCID
    Here is an explanation of these properties and why they are important to non-English ASP gadget writers:
    1. Response.CharSet
    This property will cause the HTTP contentType header to be set with the specified character set. The HTTP header is the best way to tell the recipient what the character set is. The Plumtree HTTPGadgetProvider will read the ContentType header and then know how to properly trancode the portlet text into UTF-16/Unicode. Here
    is an example of how to set this property:
    Response.CharSet = "UTF-8"
    2. Session.CodePage
    This property tells the ASP engine which character set to send text in. Please remember that all text is encoded in Unicode on the Web Server. It only gets turned into the client character set when it is send down to the client. The Session.CodePage tells the engine which codepage to transcode into when sending down to the client. Please note that this property is an "integer" property not a string. So you have to know the number of the codepage that you would like to transcode into. Here is an example of how to use this property:
    Session.CodePage = 65001
    3. Session.LCID
    This property tells the ASP engine which locale is being used. The locale is used by various VBScript functions such as FormatDateTime in order to format the date correctly for the locale. If the locale is a French locale, then the date will be formatted according to French rules. The locale does not really effect the character set, but if the portlet writer is going to the trouble of setting the other properties, then they should also set the LCID too. Here is an example of how to set this property:
    Session.LCID = 1041
    Please note that the examples that I am using are the appropriate examples for Japanese and UTF-8. The values for these properties are different for different character sets. For example, for ISO-2022-JP, the values would be:
    Request.CharSet = "iso-2022-jp"
    Session.CodePage = 50220
    Session.LCID = 1041
    A very helpful URL to figure out the values to use with Request.CharSet and Session.CodePage is the following:
    http://msdn.microsoft.com/library/default.asp?url=/workshop/Author/dhtml/reference/charsets/charset4.asp

  • Problems installing Bridge and Media Encoder in CS6

    I recently installed Creative Suite CS6 Design & Web Premium. I had previously installed the CS5 version and had not un-installed it. Everything except Acrobat appeared to install correctly. When I opened Photoshop CS6 (64-bit) I noticed that it used the CS5 version Bridge. I went into Bridge and unchecked the open at start box, closed Bridge and Photoshop and re-opened Photoshop CS6 (64-bit). When I tried to lunch Bridge from Photoshop the following message appeared in the Desktop> panel : Waiting for Bridge CS6..." Bridge CS6 did not appear despite waiting for several minutes. I then pressed the Start button and went into the Programs listing. Under the Adobe CS6 group I found all of the applications (other than Acrobat) but Bridge CS6 (64-bit), Bridge CS6, and Media Encoder each had generic icons rather than the expected relevant Adobe icons. I tried to load each of the three by clicking on the icon. In each instance the following message appeared:
    The version of this file is not compatible with the version of Windows you are running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program and then contact the software publisher.
    My system is a Gateway FX6802. I am running Windows 7 Home Premium version 6.1.7601, Service Pack 1, Build 7601. The system has 9 GB of memory. I ran CS5 on the system and did not experience any difficulty with Bridge.

    Thanks. Being the impatient sort (inspite of the problems that can create) I only did a partial uninstall with the cleaner tool, taking out the three items that were not working. Initially that seemed not to work. As I had other non-Adobe projects to take care of I put it out of mind. I even let an updatee package do its wonders. Today I used Photoshop for a quick project. I clicked on the Launch Bridge button and lo and behold the proper icon showed up and Bridge loaded. After finishing my project I closed down Photoshop and Bridge and then went through updating once more. The other problem I was having was with Acrobat. I finally traced the problem to a bad installation of Acrobat 9 at the CS4 level. (Shows you how much I use Acrobat.) I used the cleaner tool to clean up the remnants of CS4. After that Acrobat X installed quite nicely. At this point everything seems to be working as it should. Thanks for your help.

  • Premiere pro and media encoder CC problem

    Hi guys,
    I hope some of you can help me, I installed new version of premiere pro and media encoder CC and now none of them works, I can edit in premiere but as soon as I press export message apears ''sorry a serious error has occurred that requires adobe premiere to shut down'' when I try to open encoder it shut down on startup.
    I'm using old IMac 2.4ghz intel core duo, 2gb 667 mhz ddr2 sdram, ATI Radeon HD 2600 Pro 256 MB, OS X 10.8.5.
    This is the error report, please help:
    Process:    
    Adobe Media Encoder CC [946]
    Path:       
    /Applications/Adobe Media Encoder CC/Adobe Media Encoder CC.app/Contents/MacOS/Adobe Media Encoder CC
    Identifier: 
    com.adobe.ame.application
    Version:    
    7.2.0.43 (7.2.0)
    Code Type:  
    X86-64 (Native)
    Parent Process:  launchd [136]
    User ID:    
    501
    Date/Time:  
    2014-02-10 08:44:28.001 +0100
    OS Version: 
    Mac OS X 10.8.5 (12F45)
    Report Version:  10
    Interval Since Last Report:     
    1264 sec
    Crashes Since Last Report:      
    1
    Per-App Interval Since Last Report:  24 sec
    Per-App Crashes Since Last Report:   1
    Anonymous UUID:                 
    7E711766-8C55-00D3-811F-852F73421407
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    terminate called throwing an exception
    abort() called
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib   
    0x00007fff9483c212 __pthread_kill + 10
    1   libsystem_c.dylib        
    0x00007fff8d74ab24 pthread_kill + 90
    2   libsystem_c.dylib        
    0x00007fff8d78ef61 abort + 143
    3   libc++abi.dylib          
    0x00007fff96ff79eb abort_message + 257
    4   libc++abi.dylib          
    0x00007fff96ff539a default_terminate() + 28
    5   libobjc.A.dylib          
    0x00007fff8f49d887 _objc_terminate() + 111
    6   libc++abi.dylib          
    0x00007fff96ff53c9 safe_handler_caller(void (*)()) + 8
    7   libc++abi.dylib          
    0x00007fff96ff5424 std::terminate() + 16
    8   libc++abi.dylib          
    0x00007fff96ff658b __cxa_throw + 111
    9   com.adobe.dvacore.framework  
    0x000000010022814d dvacore::filesupport::DirHelper::Create() + 813
    10  com.adobe.AMEAppFoundation.framework
    0x0000000104f285e9 AME::foundation::AppUtils::GetUserPresetDir(bool) + 425
    11  com.adobe.Batch.framework
    0x0000000105c0a842 AMEBatch::Initialize() + 2194
    12  com.adobe.ame.application
    0x00000001000273cb AME::app::AMEAppInitializer::AMEAppInitializer(exo::app::AppInitArgs&, std::basic_string<unsigned short, std::char_traits<unsigned short>, dvacore::utility::SmallBlockAllocator::STLAllocator<unsigned short> >&) + 811
    13  com.adobe.ame.application
    0x000000010000ad6a AME::app::AMEApp::InitApplication(exo::app::AppInitArgs&) + 2426
    14  com.adobe.exo.framework  
    0x000000010513e77a exo::app::AppBase::Initialize(exo::app::AppInitArgs&) + 1066
    15  com.adobe.ame.application
    0x00000001000141a8 AME::RunTheApp(exo::app::AppInitArgs&, std::vector<std::basic_string<unsigned short, std::char_traits<unsigned short>, dvacore::utility::SmallBlockAllocator::STLAllocator<unsigned short> >, std::allocator<std::basic_string<unsigned short, std::char_traits<unsigned short>, dvacore::utility::SmallBlockAllocator::STLAllocator<unsigned short> > > >&) + 1576
    16  com.adobe.ame.application
    0x0000000100056a38 main + 424
    17  com.adobe.ame.application
    0x0000000100003f74 start + 52
    ==========================
    Edited by moderator to trim the crash report down to the essentials. Since these forums do not support attaching file (due to legal and security issues), we recommend uploading files using Acrobat.com’s Sendnow (https://sendnow.acrobat.com) or similar services (YouSendit.com, etc.)

    Hi mawe81,
    Thanks for posting on Adobe forums,
    Please follow this document  http://adobe.ly/1f2EHCg
    and let us know if this fix your issue or not.
    Regards,
    Sandeep

  • Saving image in windows 8.1 using stream and bitmap encoder id

    Hi
    var renderTargetBitmap = new RenderTargetBitmap();
    await renderTargetBitmap.Render(myElementTree);
    var pixels = await renderTargetBitmap.GetPixelsAsync();
    var picker = new FileSavePicker();
    // Picker setup
    var file = await picker.PickSaveFileAsync();
    // File validation
    using (var stream = await file.OpenAsync(FileAccessMode.ReadWrite))
    var encoder = await
    BitmapEncoder.CreateAsync(BitmapEncoder.BmpEncoderId, stream);
    encoder.SetPixelData(BitmapPixelFormat.Rgba8, 100, 0, 96, 96,
    await renderTargetBitmap.GetPixelsAsync());
    await encoder.FlushAsync();
    I have already used the code snippet. Could you please tell me how to save UIElement tree by having the stream and bitmap encoder id as input?
    Thanks
    Satheesh

    Here you go. Set up the file picker and call our CaptureElementToFile function. In this case it's passing the page to capture the whole screen:
    FileSavePicker picker = new FileSavePicker();
    picker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
    picker.SuggestedFileName = "capture.bmp";
    picker.FileTypeChoices.Add("Bitmap File",new List<string>() { ".bmp" });
    StorageFile file = await picker.PickSaveFileAsync();
    CaptureElementToFile(this, file);
    And here's CaptureElementToFile. The BitmapEncoder needs to know information about the size and shape of the pixel buffer and it needs to have the pixels as an Array. If you want to encode to a different size you can include a BitmapTransform.
    async void CaptureElementToFile(UIElement element, StorageFile file)
    RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap();
    await renderTargetBitmap.RenderAsync(element);
    IBuffer pixelBuffer = await renderTargetBitmap.GetPixelsAsync();
    DisplayInformation dispInfo = DisplayInformation.GetForCurrentView();
    using (var stream = await file.OpenAsync(FileAccessMode.ReadWrite))
    var encoder = await BitmapEncoder.CreateAsync(BitmapEncoder.BmpEncoderId, stream);
    encoder.SetPixelData(BitmapPixelFormat.Rgba8, BitmapAlphaMode.Straight,
    (uint)renderTargetBitmap.PixelWidth,
    (uint)renderTargetBitmap.PixelHeight,
    dispInfo.LogicalDpi,dispInfo.LogicalDpi,
    pixelBuffer.ToArray());
    await encoder.FlushAsync();
    --Rob

  • Using Premiere CC and Media Encoder CC at the same time

    Is this possible?  Doesn't seem to be.  Media Encoder bails on every job as soon as you try to render anything in Premiere.  I guess they don't play nice together, which is surprising.  I was hoping that Media Encoder would pause and wait for Premiere to finish a render.  Instead it dies on every render job, creating 0 size video files... while making a sheep bleating sound.
    Is this a GPU issue?  I have 2 nVidia cards, a 770GTX and 560GTX. (Windows 8.1, 16gb RAM, 3770k CPU)

    As soon as I initiate a render in Premiere, Media Encoder bleats, and all subsequent render jobs bleat and produce 0 size video output files... even if I quit the Premiere render before Media Encoder reaches some of those render jobs.
    I suspect this is a GPU sharing issue.... but can't be certain.
    What do you mean by new install?  Did I install it (AME or Premiere) recently? No.  I've had Creative Cloud on my machine for almost a year, and both Premiere and Media Encoder have been updated periodically.
    To my knowledge they have never worked together, but I only started using the queue feature within Premiere recently, so I haven't used AME until recently.

Maybe you are looking for

  • Exporting interactive elements for proofing

    I design an interactive publication, so work with many different clients on adverts and editorial. I'm trying to figure out the best way to export an interactive page for them to proof. I've tried exporting to an interactive PDF but this simply does

  • Customer exit other than RSR00001?

    Hi experts, in my BI-Query/Report on the selection screen I have several parameters. I need to react at certain combination of them. If I don't make it wrong, the customer exit RSR00001 has only influence on individual field, right? What should I do?

  • UTC vs GMT - Is there really a difference?

    Is there a difference between setting the TZ variable in /etc/default/init to UTC vs GMT in Solaris 9? Our Oracle DBA is using UTC within the database for a new app and wants the OS to match but all other servers in this customer's environment are se

  • What's the best way to organize my photos

    I have iPhoto, regular finder files, and adobe Bridge.  I loose photos all the time because of the automated functions in iPhoto, and am wondering if I ought to bite the bullet and give up organizing my personal picture files on my external hard driv

  • Sequence Number on Labels

    Hope someone can help.  I have a request from client to print a sequential number on an avery label.  For example, if i used address labels that were 30 to a page, the first label would have 1 and the second label would have 2, etc.   No data is bein