Snipplrhttp://snipplr.com/tags/convert
Recent snippets posted on Snipplr.comen-usSat, 10 Dec 2016 02:31:31 GMT(C#) How to Convert PDF Pages to TIFF Image inside .NET Applications - sherazamhttp://snipplr.com/view/147177/how-to-convert-pdf-pages-to-tiff-image-inside-net-applications/
This technical tip shows how to convert PDF pages to TIFF image inside .NET Applications. The TiffDevice class allows you to convert PDF pages to TIFF images. This class provides a method named Process which allows you to convert all the pages in a PDF file to a single TIFF image. To convert a particular page in a PDF file to a TIFF image, use an overloaded version of the Process(..) method which takes a page number as an argument for conversion. ]]>Wed, 22 Jun 2016 17:38:49 GMThttp://snipplr.com/view/147177/how-to-convert-pdf-pages-to-tiff-image-inside-net-applications/(PHP) Detect and convert utf-8 on string - fackzhttp://snipplr.com/view/103361/detect-and-convert-utf8-on-string/
I can't say I can rely on mb_detect_encoding(). Had some freaky false positives a while back. The following code will detect when you need to enconde or decode it. ]]>Mon, 29 Jun 2015 22:45:38 GMThttp://snipplr.com/view/103361/detect-and-convert-utf8-on-string/(MySQL) Mysql - Convertir todas las columnas en colación utf8 - ironcremahttp://snipplr.com/view/95331/mysql--convertir-todas-las-columnas-en-colacin-utf8/
Consulta que permite convertir todas las tablas en colación utf8 ]]>Mon, 30 Mar 2015 04:54:13 GMThttp://snipplr.com/view/95331/mysql--convertir-todas-las-columnas-en-colacin-utf8/(C#) How to add text-to-speech and speech-to-text features to your SIP software by using Microsoft Speech Platform in C#? - warnerBro19http://snipplr.com/view/92332/how-to-add-texttospeech-and-speechtotext-features-to-your-sip-software-by-using-microsoft-speech-platform-in-c/
In my previous snippet I have written about converting text to speech using C#. This code snippet can be used not just for allowing your computer to read txt aloud, but also for speech recognition. To implement this functionality I used Microsoft Speech Platform 11 along with Ozeki VoIP SIP SDK. The first one provides two classes (MSSpeechPlatformSTT, MSSpeechPlatformTTS) for text-to-speech and speech-to-text, and the VoIP SDK ensures the necessary VoIP components. The source code below is ready for use, so you only need to copy&paste it to your Visual Studio, then modify the necessary fields. (Do not forget to add the necessary DLL files to your references: http://www.voip-sip-sdk.com, http://www.microsoft.com/en-us/download/details.aspx?id=27226 )
After creating the necessary using lines and media handler objects, you can implement the text-to-speech and the voice recognition features by using the SetupTextToSpeech() and the SetupSpeechToText() methods.
Have a good time! ]]>Sat, 07 Mar 2015 01:10:48 GMThttp://snipplr.com/view/92332/how-to-add-texttospeech-and-speechtotext-features-to-your-sip-software-by-using-microsoft-speech-platform-in-c/(C#) How to implement text-to-speech during a SIP voice call in C#? - warnerBro19http://snipplr.com/view/91657/how-to-implement-texttospeech-during-a-sip-voice-call-in-c/
I have heard about this solution on the Facebook, and I thought it is worth to share my source code to help other developers interested in converting text to speech using C#. Text-to-speech refers to the ability of computers to read txt aloud. This functionality can be greatly used during SIP communication in autodialer or IVR systems. The source code below is ready for use, so you only need to copy&paste it to your Visual Studio, then modify the necessary fields. (Do not forget to add the necessary DLL file providing the VoIP background to your references: http://www.voip-sip-sdk.com)
This solution assumes that you have a PBX with some SIP extensions installed previously. After creating the necessary using media handler objects, you need to define your PBX and provide the appropriate SIP account details in order to be able to register your application to the phone system. When you have created all the required methods for SIP calling, you can implement the text-to-speech feature by using the SetupTextToSpeech() method.
Have a good time! ]]>Fri, 27 Feb 2015 01:14:21 GMThttp://snipplr.com/view/91657/how-to-implement-texttospeech-during-a-sip-voice-call-in-c/(PHP) HTML to Plain Text - nigelnquandehttp://snipplr.com/view/83996/html-to-plain-text/
This function takes HTML input and converts it to plain text. It needs improvement so that it converts multiple blank lines to a single blank line and converts an &lt;a ... &gt; link to the markup equivalent (same for images). It should be rewritten to using a DOM/XML parser. ]]>Mon, 15 Dec 2014 19:55:00 GMThttp://snipplr.com/view/83996/html-to-plain-text/(Ruby) Convert Email to Other Formats using Cloud API in Ruby - johansonkatherinehttp://snipplr.com/view/74784/convert-email-to-other-formats-using-cloud-api-in-ruby/
This technical tip shows how developers can convert email messages to other formats like EML, MSG & MHT in cloud using ruby language. ]]>Tue, 10 Jun 2014 17:28:58 GMThttp://snipplr.com/view/74784/convert-email-to-other-formats-using-cloud-api-in-ruby/(PHP) Convert MP3 to OGG - dragoviandesignhttp://snipplr.com/view/74717/convert-mp3-to-ogg/
This snippets converts a file called 'test.mp3' in the same folder, to a file called 'test.ogg' and saves it in the same folder as well ]]>Sun, 01 Jun 2014 20:00:22 GMThttp://snipplr.com/view/74717/convert-mp3-to-ogg/(Java) Load Existing Email Message and Modify its Contents inside Android Apps - johansonkatherinehttp://snipplr.com/view/74654/load-existing-email-message-and-modify-its-contents-inside-android-apps/
This technical tip shows how to load any existing email message and modify its contents before saving it back to disk using Aspose.Email for Android API. To do this successfully, specify the MessageFormat when loading the email message from disk. In addition, it is important to specify the correct MailMessageSaveType when saving the message back to disk.
To update and save an email, the following steps can be used:
1. Create an instance of the MailMessage class.
2. Load an existing message using the MailMessage class' load() method and specifying the MessageFormat of the existing message.
3. Get the subject using getSubject().
4. After modifying the subject, set it again using the setSubject() method.
5. Get the body using getHtmlBody().
6. AFter modifying the body, set it using the setHtmlBody() method .
7. Create an instance of the MailAddressCollection class.
8. Get the recipients from the TO field into a MailAddressCollection object using the getTo() method exposed by the MailMessage class.
9. Add or remove recipients using the add() and remove() methods exposed by the MailAddressCollection class.
10. Get the recipients from the CC field into a MailAddressCollection object using the getCC() method exposed by MailMessage class.
11. Add or remove recipients using the add() and remove() methods exposed by the MailAddressCollection class.
12. Call the save() method exposed by the MailMessage class, specifying the correct MailMessageSaveType to save the message file to the disk in MSG format. ]]>Thu, 22 May 2014 14:54:02 GMThttp://snipplr.com/view/74654/load-existing-email-message-and-modify-its-contents-inside-android-apps/(Java) How to Convert MemoryStream Image to PDF inside Android Applications - johansonkatherinehttp://snipplr.com/view/74011/how-to-convert-memorystream-image-to-pdf-inside-android-applications/
This technical tip shows how developers can convert MemoryStream image to PDF file inside their Android application. The Image class in Aspose.Pdf makes it possible to convert an image from various sources into PDF format. This may include an image from particular location over the hard-drive, an image from MemoryStream or an image at a web location. The ImageInfo class has a method named setMemoryData() which is used to specify MemoryStream as the image source. ]]>Thu, 27 Mar 2014 18:20:18 GMThttp://snipplr.com/view/74011/how-to-convert-memorystream-image-to-pdf-inside-android-applications/(C#) C#/.NET Code Samples to Save Microsoft OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file - johansonkatherinehttp://snipplr.com/view/73837/cnet--code-samples-to-save-microsoft-onenote-one-file-as-an-image-png-bmp-jpeg-gif-file/
The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET ]]>Tue, 11 Mar 2014 20:54:07 GMThttp://snipplr.com/view/73837/cnet--code-samples-to-save-microsoft-onenote-one-file-as-an-image-png-bmp-jpeg-gif-file/(Java) Java Code Samples for Converting Charts in Excel Files to Image Files - johansonkatherinehttp://snipplr.com/view/73763/java-code-samples-for-converting-charts-in-excel-files-to-image-files/
The following technical tip show how developers can Convert Chart in excel file to Image in java using Aspose.Cells component. Charts are visually appealing and make it easy for users to see comparisons, patterns, and trends in data. For instance, rather than analyzing columns of worksheet numbers, a chart shows at a glance whether sales are falling or rising, or how actual sales compare to projected sales. People are frequently asked to present statistical and graphical information in an easy to understand and an easy to maintain manner. A picture helps. Sometimes, charts are needed in an application or web pages. Or it might be needed needed for a Word document, a PDF file, a PowerPoint presentation or some other application. In each case, you want to render the chart as an image so that you can use it elsewhere. Aspose.Cells for Java has supported converting charts in Excel files to image files since release 2.1.2. ]]>Fri, 28 Feb 2014 14:09:28 GMThttp://snipplr.com/view/73763/java-code-samples-for-converting-charts-in-excel-files-to-image-files/(Java) Java Code Samples for Converting Charts in Excel Files to Image Files - johansonkatherinehttp://snipplr.com/view/73762/java-code-samples-for-converting-charts-in-excel-files-to-image-files/
The following technical tip show how developers can Convert Chart in excel file to Image in java using Aspose.Cells component. Charts are visually appealing and make it easy for users to see comparisons, patterns, and trends in data. For instance, rather than analyzing columns of worksheet numbers, a chart shows at a glance whether sales are falling or rising, or how actual sales compare to projected sales. People are frequently asked to present statistical and graphical information in an easy to understand and an easy to maintain manner. A picture helps. Sometimes, charts are needed in an application or web pages. Or it might be needed needed for a Word document, a PDF file, a PowerPoint presentation or some other application. In each case, you want to render the chart as an image so that you can use it elsewhere. Aspose.Cells for Java has supported converting charts in Excel files to image files since release 2.1.2. ]]>Fri, 28 Feb 2014 14:04:04 GMThttp://snipplr.com/view/73762/java-code-samples-for-converting-charts-in-excel-files-to-image-files/(Java) C# &amp; VB.NET Code Samples for Exporting Microsoft Visio Diagram to XML - johansonkatherinehttp://snipplr.com/view/73532/c--vbnet-code-samples-for-exporting-microsoft-visio-diagram-to-xml/
This technical tip shows how .NET developers can export Microsoft Visio diagram to XML inside their own applications using Aspose.Diagram for .NET. Aspose.Diagram for .NET lets you export diagrams to a variety of formats: image formats, HTML, SVG, SWF and XML formats:
• VDX defines an XML diagram.
• VTX defines an XML template.
• VSX defines an XML stencil.
The Diagram class' constructors read a diagram and the Save method is used to save, or export, a diagram in a different file format. The code snippets in this article show how to use the Save method to save a Visio file to VDX, VTX and VSX. ]]>Thu, 30 Jan 2014 19:14:03 GMThttp://snipplr.com/view/73532/c--vbnet-code-samples-for-exporting-microsoft-visio-diagram-to-xml/(Java) Convert Each TIFF Frame to JPEG &amp; Transform them to PDF Format Using Java - johansonkatherinehttp://snipplr.com/view/73485/convert-each-tiff-frame-to-jpeg--transform-them-to-pdf-format-using-java/
This technical tip shows how each TIFF frame can be converted to JPEG and then these images to PDF file using Aspose.Pdf for Java. Aspose.Pdf for Java is very well capable of dealing with TIFF images and can easily transform them into PDF format. However there are cases when a TIFF image contains frames with different resolution or page orientation and product might not work well. So in order to resolve such issues, we can first convert TIFF frames into individual JPEG images and then save these images into PDF format using Aspose.Pdf for Java. ]]>Thu, 23 Jan 2014 16:51:50 GMThttp://snipplr.com/view/73485/convert-each-tiff-frame-to-jpeg--transform-them-to-pdf-format-using-java/(PHP) Convert IP Address to Hex - martyncouphttp://snipplr.com/view/72776/convert-ip-address-to-hex/
Covnerts an IP address to it's relative hex value. ]]>Thu, 31 Oct 2013 08:03:42 GMThttp://snipplr.com/view/72776/convert-ip-address-to-hex/(Objective C) Casting int to float - pectahttp://snipplr.com/view/71718/casting-int-to-float/
method to convert int to float in ObjC ]]>Thu, 04 Jul 2013 21:48:44 GMThttp://snipplr.com/view/71718/casting-int-to-float/(C#) Convert Excel file (XLS) to CSV - engebajahttp://snipplr.com/view/71092/convert-excel-file-xls-to-csv/
Convert Excel file (XLS) to CSV ]]>Wed, 08 May 2013 16:54:17 GMThttp://snipplr.com/view/71092/convert-excel-file-xls-to-csv/(PHP) Convert Seconds into Time String in PHP - apphp-snippetshttp://snipplr.com/view/70021/convert-seconds-into-time-string-in-php/
This function returns the duration of the given time period in days, hours, minutes and seconds. For example: echo convertSecToStr('654321'); would return "7 days, 13 hours, 45 minutes, 21 seconds" ]]>Wed, 20 Feb 2013 21:27:58 GMThttp://snipplr.com/view/70021/convert-seconds-into-time-string-in-php/(C#) US State to Abbreviation Dictionary and Conversion - misholsonhttp://snipplr.com/view/69920/us-state-to-abbreviation-dictionary-and-conversion/
Two static dictionaries for converting US state names to abbreviations, and the reverse. ]]>Wed, 13 Feb 2013 07:18:00 GMThttp://snipplr.com/view/69920/us-state-to-abbreviation-dictionary-and-conversion/