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
3
votes
5 answers

Is it possible to batch convert csv to xls using a macro?

I have a large amount of csv files that I need in .xls format. Is it possible to run a batch conversion with a macro or best done with another language? I have used this code http://www.ozgrid.com/forum/showthread.php?t=71409&p=369573#post369573 to…
Alistair Weir
  • 1,809
  • 6
  • 26
  • 47
3
votes
4 answers

Convert Windows file to Linux file

I am having trouble with Windows files running as part of a shell script on a Linux box and I was wondering if it is possible to "convert" a Windows created file to a Linux one using Java or possibly a Linux command? For example: If I upload a CSV…
My Head Hurts
  • 37,315
  • 16
  • 75
  • 117
2
votes
1 answer

How can I convert many different document formats to PDF on UNIX?

There are a few SaaS providers out there who do this sort of thing, but I do not want to rely on a 3rd party. I am looking for a (preferrably open source) locally hosted UNIX command line library to take in hundreds of different document formats…
Anthony
  • 86
  • 4
2
votes
1 answer

Is PDF conversion always A4 portrait?

I am just using the app engine python file conversion api for the first time. I am converting html to PDF. It seems to work well, and pretty fast too, but even though the html page is set to 960px width the resulting PDF crops off the content,…
Justin Grayston
  • 352
  • 2
  • 10
2
votes
2 answers

WAV / MP3 Conversion On Web Server

I'm looking to convert uploaded WAV files to MP3 on my shared hosting server (ASP.NET / C#) and am curious if anyone else has tackled this before. I've seen a few open source C# libraries for performing audio conversion (AumpLib, for example), but…
goombaloon
  • 3,039
  • 8
  • 37
  • 55
2
votes
3 answers

How do I convert a PDF to a text file and preserve the format of the PDF?

Hello I want to convert a PDF file to text file. I am converting the PDF file to text file. But it doesn't preserves the format of text which is exactly in PDF file. Please help me.
MJ13
  • 21
  • 1
  • 1
  • 4
2
votes
2 answers

Command line tool to convert xls/xlsx to xml?

Is there there an open source command line tool that will convert xls/xlsx to xml? Ideally I'd like to do this on an *NIX system.
Cyrus
  • 3,687
  • 5
  • 35
  • 67
2
votes
1 answer

ModuleNotFoundError: No module named 'exceptions'

I need to transform 140 .docx files into txt. I am using the following Python code that I found here in StackOverflow. I tried this: import os from docx import Document # Path to the folder containing .docx files input_folder =…
2
votes
2 answers

Problem with converting XML to CSV 'NoneType' object has no attribute 'text'

I'm using python code that converts my XML to a CSV file and reads specific fields like "full_name", "item_name", "price", "in_stock". Unfortunately, I have a problem with reading the EAN field. During conversion, he receives the error:…
2
votes
1 answer

How to convert model.tflite to model.cc and model.h on Windows 10

I have created a TensorFlow Lite .tflite model which I plan to use on a microcontroller. However, this file must be converted to a C source file, i.e, a TensorFlow Lite for Microcontrollers model. TensorFlow documentation provides a simple way to…
2
votes
1 answer

Inkscape PDF to eps conversion with matplotlib generated font

I usually create figures using matplotlib. Here is a minimal working example: def cm2inch(*tupl): inch = 2.54 if isinstance(tupl[0], tuple): return tuple(i/inch for i in tupl[0]) else: return tuple(i/inch for i in…
Wolpertinger
  • 1,169
  • 2
  • 13
  • 30
2
votes
2 answers

Running LibreOffice converter on Docker

The problem is related to using LibreOffice headless converter to automatically convert uploaded files. Getting this error: LibreOffice 7 fatal error - Application cannot be started Ubuntu ver: 21.04 What I have tried: Getting the file from Azure…
2
votes
1 answer

Convert a document to PDF using "Microsoft Print to PDF" and Java

I am currently testing to convert RTF/DOC documents into PDF on a Microsoft Windows host. I have a working peace of code that uses the API of Microsoft Word but due to license costs I would like to get rid of it. I had the idea that it might be…
2
votes
2 answers

Converting MS Word files (saved in Drive) to Google Docs using app script

I'm stuck with something and can't find a solution to it. Is there a way to convert MS Word files stored in Google Drive to Google Docs using the file urls or ids? I currently have a spreadsheet with the urls to the files. Alternatively, a python…
arda0910
  • 47
  • 4
2
votes
0 answers

How could I save a image as a text file?

Sorry, I am not very experienced with programming and such, but I am wondering if it would be possible to convert an image to a text file. One idea I had is to look at the color of every pixel and save the HEX value of the color, then to decode it…
Jordan
  • 21
  • 1