Questions tagged [file-conversion]

Use this tag for questions about conversion from one file format to another. If applicable, use a more specific tag like [image-conversion], [video-conversion] or [pdf-conversion].

This tag applies to any kind of conversion from one file format to another. However, certain types of file should use a more specific tag:

780 questions
4
votes
2 answers

How do I convert a binary file to a byte array?

Given the path of a file (e.g. "C:\MyPicture.jpg"), how do I convert a binary file into a byte array? I know I have a lot of .NET objects at my disposal, such as BinaryReader, FileStream, StreamReader, and others, but I'm not sure of the best method…
Ben McCormack
  • 32,086
  • 48
  • 148
  • 223
4
votes
4 answers

Perform file encoding conversion with Rebol 3

I want to use Rebol 3 to read a file in Latin1 and convert it to UTF-8. Is there a built-in function I can use, or some external library? Where I can find it?
giuliolunati
  • 766
  • 5
  • 14
4
votes
2 answers

How to get rid of the white background of MS Visio files by PDF-Conversion?

I am currently drawing some charts and diagrams using MS Visio. But when I convert them into pdf for using in Latex-Documents, I get the whole page of the vsd-file, and not just the diagrams etc. So the entire page will be converted into pdf. Since…
DanglingElse
  • 243
  • 5
  • 12
4
votes
1 answer

Stream as html5 audio or convert .amr to .ogg

I want to stream .amr audio files on my server. After spending a couple hours of research, it's clear to me that this is not feasible under the current state of html5 audio. Following this disappointing finding, I spent several additional hours…
jtrick
  • 1,329
  • 18
  • 23
4
votes
1 answer

Converting doc into PDF in android,Unable to execute dex

I am converting doc file into pdf format in android using following libraries, itext-1.4.8.jar poi-3.0-FINAL.jar poi-scratchpad-3.2-FINAL.jar here is my sample code package com.example.converter; import java.io.FileInputStream; import…
Droid GEEK
  • 192
  • 2
  • 11
4
votes
1 answer

Reading and Displaying Uploaded text Files in MVC

Is it possible to read uploaded text files e.g .txt and display the content in a textbox ? I want to do a file conversion of the uploaded files. I've managed to upload and validate the files I would like at the click of a button to read the contents…
b0w3rb0w3r
  • 927
  • 3
  • 11
  • 33
4
votes
1 answer

Convert cv::mat to string of bytes in OpenCV

I need to implement a function which takes an image and return a file say a text file containing a string of bytes. What I have done yet is : #include #include using namespace cv; int main( int argc, char** argv ) { cv::Mat…
Nauman Khalid
  • 41
  • 1
  • 4
3
votes
1 answer

ExportAsFixedFormat's IgnorePrintAreas parameter seems not to have effect

In a Delphi application I am using since years the following code to export xlxs to pdf: function TExportTool.ExportExcelToPDF(aFileName, aNewFileName: String): Boolean; // reference :…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
3
votes
0 answers

convert my excel file into dbf file using python

I would like to convert my excel file into dbf file using python. sample input file emp.xlsx is as below I went through the below links and tried. convert csv file to dbf Convert .csv file into .dbf using Python? dbf file is created but all the dbf…
Ravi Kannan
  • 303
  • 1
  • 3
  • 11
3
votes
3 answers

Using multiple % in Makefile

I have to convert a set of file (let's say format fa) into another format (fb) by a command (fa2fb). Each target fb depends only on one fa file. Data structure is in a format like…
gio10
  • 31
  • 1
3
votes
0 answers

How to convert MP3 to wav with external libraries or SDK Android?

I need to convert an MP3 audio file in wav format using java libraries or Android SDK. I tried: JMF Java frameworks and official SOUND library: it is not possible in Android to compile this library because it is older than the Java compiler…
alfredo g
  • 31
  • 2
3
votes
1 answer

pywintypes.com_error saving word doc as pdf python pywin32

I am opening a word document in word using python and trying to convert it using this answer on StackOverflow. My python code: import win32com.client word = win32com.client.Dispatch('Word.Application') wdFormatPDF = 17 doc =…
koder613
  • 1,486
  • 5
  • 21
3
votes
1 answer

Converting mkv files to mp4 with ffmpeg-python

I have a lot of .mkv files that I'm trying to convert to .mp4, so I decided to try and program a solution in python. After a few hours, trying to figure out how to copy the subfolders too, I gave up on it and decided to stick with converting…
myth0s
  • 81
  • 1
  • 1
  • 4
3
votes
2 answers

PDF dimensions vs actual content dimension

I'm currently using php's imagick to convert some PDF to images - This works well for the small detail that the images are 'chopped' during output. This is due to the difference in information contained on the PDF vs the actual content…
TeckniX
  • 673
  • 1
  • 7
  • 14
3
votes
1 answer

Convert docx to PDF using Linux and Python

I am looking for a way to convert a docx to PDF using Python in Linux. So far, all I have found that works it is using Windows, is there a way to do it in Python without using libreoffice?
Marisa
  • 1,135
  • 3
  • 20
  • 33