I am working on project on virtual printer, and i want to convert ps file to txt and pdf. I am using ps2pdf and it converts well to pdf, but when I want to convert ps file to txt, I use ps2ascii , and then got problem. ps file contains russian symbols. how can I convert ps file to txt (russian language)? I read on web that it is unicode problem.
Related Questions in UTF-8
- Can't we make a better variable-length character encoding with just using the 1 bit extra in the 7 bit ASCII?
- UTF-8 issue with excel
- UTF-8 string has too many bytes using SBCL and babel on Windows 64 bits
- How to convert from Java ASCII properties to UTF8 (Java 9) properties
- How to read a file that contains both ANSI and UTF-8 encoded characters
- BSONError in MongoDB Compass
- Create HMAC SHA-1 in JS with byte array
- pdftk unicode works in preview but not adobe acrobat
- xml file from ISO-8859-2 to UTF-8 in python
- How to store metadata for a UTF-8 text file cross-platform?
- Encoding problem on MySQL: Why some non-ASCII characters get encoded on more than 4 bytes?
- How to get character position in a text file encode in UTF-8 in C?
- Unicode character ſ is matched as itself and as 's.'
- VS Code integrated terminal UTF-8 input problem
- pdftk generated pdf does not render correct utf-8
Related Questions in POSTSCRIPT
- Why does Ghost script 10.02.01 rotate barcode elements 180 degrees counterclockwise?
- Is it possible to export the width and height of a string to an external program writing native Postscript
- Text overlaid with Ghostscript not visible
- How approximate {X[z],Y[z]} functions as Bézier cubic
- PostScript circles: how accurate, how improve?
- Debug option INITDEBUG, output format
- how to extract location state from postscript?
- make two-sided pdf layout with multiple pages per sheet
- how to make Accessibiity pdf from postscript file
- Ghostscript: Stop image rotating when converting PDF to Image
- Generate postscript file PS-Adobe EPSF android
- convert postscript file to eps file that is in a vector format
- How to use /AlwaysOutline command in ghostscript pdf processing?
- How to embed unembedded fonts in a PDF?
- How do I embed a page of postscript (but not Encapsulated Postscript) into another document
Related Questions in CONVERTERS
- ABAP convert Database char to lowercase
- What is the difference between converting PNG images to JPEG using convertio.co
- Culture info usage while converting string to float type
- Convert Docx To Markdown With Specific Tables
- Convert single column txt file to multi column csv
- convert hatanaka to rinex for multiple files
- How to convert this text contrast function to version for hsl values
- convert PDF to HTML(one paragraph in each <span>tag)
- Glulxe/gblorb game or file editing
- WGET -HTTP request sent, awaiting response... 404 Not Found
- How to perform a binding inside the calling of a converter in WPF XAML?
- Any simple and lightweight tool to transform LaTex to MathML?
- Attempting to build a publication reference converter - cannot get it to function correctly
- How to convert the magnitudes cointained in a nc file and then cut the data according to the data in a shp file with R
- Issue: Custom converters are not triggered during CSV file writing with CsvHelper
Related Questions in CYRILLIC
- Cyrillic characters in friendly URLs not working with IIS
- Android 7 open file cyrillic name
- Cyrillic font-face usage with custom wordpress style
- How to print Unicode symbols U+2610 and U+2612 to Windows console with Java?
- Russian symbols in Python output corrupted (ENCODING)
- Mongodb, cyrillic text, errors
- DOMPDF does not support Cyrillic characters. Easy fix?
- Can not correctly insert cyrillic symbols into NTEXT field in SQL Server database
- preg_match is not working as expected
- Cyrillic characters in Python 2.7
- Sorting Russian/English list
- Getting wrong encoding when trying to replace cyrillic symbols
- R pdf plot text overlap
- Regexp for cyrillic word doesn't work in app
- Cyrillic in the android.widget.TextView
Related Questions in VIRTUAL-PRINTER
- How to build dll for virtual printer: mfilemon.dll, PRINTERDRV.DLL, PRINTER.GPD, PRINTERUI.DLL, SCRIPT.HLP in win11
- How to use usbprinter package in golang?
- Can I emulate Epson Thermal POS printer?
- get data from printer local port
- Windows 10: Simple way to print a PDF-file without the save-dialog
- How to set up a PDF network printer that will keep the PDF file
- Ghostscript Virtual PDF Printer
- How to save as PDF while printing a document on actual printer
- Print Word Document using a virtual PDF printer from C# programmatically and silently
- How to get Microsoft Word print docx right with my virtual printer using ghostscript?
- Convert .ps file to .txt (russian language)
- How to programmatically print files and web pages to PDF through "Microsoft print to PDF"?
- How to set fix directory for output file in V4 Printer Driver
- Converting Postscript file to Text file using gostscript or ps2txt converter
- How to fake an AirPrint printer
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
ps2ascii only handles ASCII (the clue is, obviously, in the name). The ps2ascii shell script and PostScript program was removed from the standard Ghostscript source tree some time back, because it was too limited and there is a better option.
The problem with using PostScript is that there is no guaranteed way to relate the character codes used to render the text to Unicode, or any other standard text encoding. PostScript is a language intended for printing, not for editing.
You may be lucky, it depends entirely on the fonts and Encoding/CMap the PostScript program you produce uses. I note that you are talking about a 'virtual printer' is this on Windows ? If so you may be in luck, the Windows PostScript printer driver adds extra (entirely non-standard) information to at least some fonts when it embeds them in the PostScript program. This additional information can be used to retrieve Unicode code points.
I would start by trying the txtwrite device from Ghostscript (and you should use Ghostscript directly instead of using pre-baked scripts) on the PostScript and see if that is able to extract the text.
If not, then try creating a PDF file from the PostScript, and then use the txtwrite device on the PDF file. I'm not absolutely certain if the txtwrite device has all the bells and whistles of the pdfwrite device, it may not be able to use the Unicode information from the font directly, but it can certainly use it from the PDF file.
I should probably direct you to read the licence for Ghostscript as well, it's the AGPL version 3, just so you don't end up wasting time on something you then discover you can't use for legal reasons.
Edit
After a quick check, it seems we removed the ps2ascii PostScript program, but changed the ps2ascii script to use the txtwrite device instead. So if you use a reasonably recent version of Ghostscript that's what will be happening. If that's not producing acceptable text then try creating a PDF file and running ps2ascii on that. If that doesn't work then most likely you simply can't do what you want, the information has gone in the process of printing.
If you make an example PostScript file available which doesn't work, I could say more definitely.