Reading Tiff files in Adobe Flex based Application - apache-flex

can some one help me in reading TIFF files at runtime in Flex/AS3 based applications?
Thanks for your time guys.

You'll need a TIFF reader written in ActionScript, it's not built into the framework or player. Google Code Search offers a few options:
http://google.com/codesearch?q=tiff+lang%3Aactionscript&hl=en&btnG=Search+Code
This one looks most promising:
http://google.com/codesearch/p?hl=en#ADyxW5M5wHw/trunk/TD/src/tiff/Tiff.as&q=tiff%20lang:actionscript&sa=N&cd=3&ct=rc

http://code.google.com/p/windowsbitmapdencoder
Here is a tiff - baseline decoder I wrote back in july.
It will read all "baseline" formats, 1, 8, 24 bpp.
It will handle Intel/Motorolla byte order as well as interlace or planar pixel order.
However, it does not support compression yet.
But feel free to append !
I have started working on LZW and ZIP and can offer you the source code of implementation.
Sincerely,
CT

Related

Converting Docx to PDF using .Net Core [Open Source]

I'm looking for a plugin which can convert word (docx / doc) to pdf Without Microsoft.Office.Interop and Open Source one. There are questions asked on it but no solution is provided or I didnt found any.
Any suggestion or references will be much appreciated!.
You could do this using Aspose.Words project, however this library is not an opensource (license is required and cost some money): https://blog.aspose.com/2020/01/02/convert-word-doc-docx-to-pdf-in-csharp-net-core/
On our project we needed to keep formating as close as the original. But every plugin we tried never came close to the original.
We opted for I Love Pdf utilities.
Word to PDF
They have a well documented API for some language (including .Net) and it works great.
You can process 250 files freely every month and if you need more, it's not that expensive.
Hope this helps

AVI subtype playback issues

I have two AVI videos. one will play in an application i am using and the other will not.
looking at them in Media Player Classic properties, they have exactly the same specifications
Codec : DVSD
Named: DVC/DV
but looking at them in GSpot, I finally found a difference.
the working file uses OpenDML AVI 2.0
whereas the file that will not open uses AVI 1.0
I need to convert one to the other, but i cant find a way to convert from one codec to a different version of the same codec, muchless how to find different editions of the same codec.
If anyone has an idea of how to fix this or what the other differences may be, please let me know.
The application I am trying to open these with only functions on Windows XP if that is any indication of what the problem may be.
using the option "save as old avi format" in VirtualDub solves this problem.
http://www.virtualdub.org/download.html

How can I convert avi to mp4 using graphedit and ffdshow?

I´m working on an application based on directshow that has to convert an AVI source file to to an mp4-file that can be played back with Quicktime.
Since 3ivx, according to my web research the most popular way to fulfill this task, has become commercial (and my budget is quite limited), I decided to use a solution based on ffdshow.
I created a simple graph in graphedit, using LAME for audio encoding and GDCL MPEG 4 Multiplexor for the muxing, but everytime I try to play the movie with Quicktime, I´m getting an error indicating a wrong "sample description".
Playback with Windows Media Player is working, except that there is no sound.
My guess is that there´s a problem with the muxer, because every time I try to add audio encoding, graphedit automatically adds an decoder after the encoding unit (see picture link).
http://imageshack.us/photo/my-images/39/graphjrgr.png/
Any ideas on how to integrate ffdshow in a better way, tips for alternative mp4 muxers, or a complete different approach are appreciated!
The GDCL muxer has limited number of audio formats that it supports, probably you should check the source code for the muxer to see if the formats you are using are in fact supported. Basically, you need to choose an audio encoder that the mux recognizes as valid. It might be possible to use GraphEdit to choose different properties for the encoder filter that allow things to work better.
I have had some luck with the Monogram x264(video) and AAC(audio) encoders. See http://blog.monogram.sk/janos/directshow-filters/
Finally, try the debug version of the GDCL mp4 muxer.
Also, you must be aware of MPEG-4 LA licensing requirements for x264 http://www.mpegla.com/main/programs/AVC/Pages/FAQ.aspx

Creating a JPEG and writing its EXIF data in Flex

I am creating an application that takes a user's hand signature, input on the Blackberry playbook. When the JPEG is created, I would like to add Exif data such as the date/time to the JPEG. Does anyone know how to do this, or if it is possible?
Thanks
Phil
I couldn't find anything online about writing exif data, but I did find this interesting article on reading exif data. It mentions what bytes does what. I suggest you take that library to create something to write exif data. Seems fairly simple, just need to set the proper tags in the ByteArray, append the image byte array between 2 tags and write to the file.
i found two libries
As3 seems to be writing it to xml, but flash builder does not take in import com.adobe.xmp.*;
Metaphile

PDF to HTML or similar

I'm building an application to view pdf's through a browser without the need of a plugin on mobile devices. I tried ImageMagick and ghostscript to covert the pages to images but they are far too large and text becomes unclear. I see website offering a service of converting pdf's into html and do a descent job but I can't find an example of how this is accomplished. Any help is much appreciated. Thanks!
EDIT: I seem to have read the question backwards. In this case it might be best to parse through the PDF and then format some HTML based on what you find. I believe the javapdf option is capable of this, but I haven't used any of these so I am not sure. If worse comes to worst and you can't find software to disassemble a PDF, you might be able to write your own disassembler in Java or PHP by reading the PDF specification. Best of luck!
http://www.adobe.com/devnet/pdf/pdf_reference.html - PDF Specification (Adobe Modified Version, because they are most popular you may want to support their extensions)
-- OLD -- These websites probably write their own proprietary software to do the trick. If you are truly interested in this undertaking, I would suggest parsing the HTML to get the data and style information and using it to format some sort of PDF writer APIs. A quick Google search yields the following: -- END OLD --
http://www.cutepdf.com/Solutions/
http://ruby-pdf.rubyforge.org/pdf-writer/doc/index.html
http://asprise.com/product/javapdf/
If you are looking at converting PDF to HTML and planning to run the conversion on a server, then you can try pdf2html. It is a program packaged as part of poppler-utils. I do not know how the program accomplishes it.
I was googling and came across the below link explaining how scridb.com implements conversion.
http://coding.scribd.com/2010/06/01/the-perils-of-stacking/

Resources