473,503 Members | 2,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parsing PostScript files for data

Ok, I know you all do six impossible things before breakfast, but I
don't do breakfast, so I can't do anything much at all. Which is why
I'm posting this, videlicet:

ASP.NET
VB.NET

*My* client receives a report from *his* client in Postscript format
(NOT PDF, probably LaTeX or something, anyway with a .ps extension).
The Third Party (the PS generator) flat out refuses to release the
report in anything other than .PS format. My client wants me to parse
this report (it looks like a badly designed Word table, BTW) and
extract the data, to be reformated into a new report.

As far as I can see the PS file is just a list of co-ordinates in no
very useful order. For example, there is a field "Consignor" with (I
guess) X and Y positions, but the data that appears in the Consignor
"box" is about 200 lines away. So it's not like I could parse the
file as a big string, find the word "Consignor" and be able to rely on
the next string being the associated datum.

Badly expressed, I know, but mine own. Anyone out there solved this
problem?

MTIA

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk
Nov 20 '05 #1
2 2952
Cor
Hi Edward,

This group is a program language group, I would try it in a more document
newsgroup like Word.

Although there are a lot of people who visits this newsgroups who know a lot
of document, I give you a better chance in such a newsgroup.

I hope you have success

Cor
Nov 20 '05 #2
* te********@hotmail.com (Edward) scripsit:
*My* client receives a report from *his* client in Postscript format
(NOT PDF, probably LaTeX or something, anyway with a .ps extension).
The Third Party (the PS generator) flat out refuses to release the
report in anything other than .PS format. My client wants me to parse
this report (it looks like a badly designed Word table, BTW) and
extract the data, to be reformated into a new report.

As far as I can see the PS file is just a list of co-ordinates in no
very useful order. For example, there is a field "Consignor" with (I
guess) X and Y positions, but the data that appears in the Consignor
"box" is about 200 lines away. So it's not like I could parse the
file as a big string, find the word "Consignor" and be able to rely on
the next string being the associated datum.


Did you have a look at the specification for the file formats?

<http://www.wotsit.org>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6398
by: Arthur | last post by:
Hi Everyone, I'm having a real hard time with this. Maybe some smarter people can assist. I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be able to print Postscript, bold,...
3
3048
by: Girish | last post by:
Hi All, I have written a component(ATL COM) that wraps Xerces C++ parser. I am firing necessary events for each of the notifications that I have handled for the Content and Error handler. The...
9
1671
by: gov | last post by:
Hi, I've just started to learn programming and was told this was a good place to ask questions :) Where I work, we receive large quantities of data which is currently all printed on large,...
0
1401
by: Steven | last post by:
I have a postscript file exported from a 3rd party application, the postscript file contains both text and images. What I would like to do is load the postscript file into an object and extract...
1
12205
by: Uwe Schmitt | last post by:
Hi, I am trying to print raw postscript data on windows. win32print should do the work like this: h=win32print.OpenPrinter(name) win32print.StartDocPrinter(h, 1, ("", "", "RAW"))...
3
4359
by: toton | last post by:
Hi, I have some ascii files, which are having some formatted text. I want to read some section only from the total file. For that what I am doing is indexing the sections (denoted by .START in...
2
2421
by: Gary42103 | last post by:
Hi I need Perl Script to do Data Parsing using existing data files. I have my existing data files in the following directory: Directory Name: workfs/ams Data File Names: 20070504.dat,...
16
2048
by: william tanksley | last post by:
I'm trying to convert the URLs contained in iTunes' XML file into a form comparable with the filenames returned by iTunes' COM interface. I'm writing a podcast sorter in Python; I'm using iTunes...
3
4493
by: GazK | last post by:
I have been using an xml parsing script to parse a number of rss feeds and return relevant results to a database. The script has worked well for a couple of years, despite having very crude...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.