473,799 Members | 3,866 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can SVG be a potential replacement for PDF?

I'm curious to get feedback regarding the potential SVG has in
performing the same functionality as PDF for fixing documents.

Thanks.

Mark
Jul 20 '05
27 3917
Mark wrote:
Robert M. Franz (RMF) wrote:
Mark wrote:
Each page has its own SVG graphic?


That seems impractical at best.

You really want to replace one PDF file with [enter your favourite whole
number] SVG files ...?


Well, put them into a zip-archive, and you have a nice single file
package. That's what OpenOffice does, or Java archives (jar).
So the SVG spec has not included the functionality to have multiple
SVG graphics within a single SVG file?
Well, you can read, look it up in the spec for SVG V1.1 (the current
"stable" spec).
http://www.w3.org/TR/SVG/

SVG V1.2 (draft) includes a model for multi-page documents.
http://www.w3.org/TR/2004/WD-SVG12-20041027/
(Of course, multiple SVG
graphics can be embedded within an XML document using a schema which
supports islands of SVG markup.)
That's what the multi-page feature of SVG 1.2 does, essentially.
To rephrase, does SVG have the power to be a substitute for PDF on a
page-by-page basis?
Yes.
For example, could SVG be used to produce IRS
forms which would look identical to the PDF versions?
Yes, including all the form and scripting stuff when combined with XForms.

If you are mainly interested in printing: Take a current PDF to
SVG-converter, and it will convert the PDF to single page SVG files.
These files will look identical to the PDF version, when using an
uptodate SVG viewer, on screen and on paper.

Example converters:
http://www.pdftron.com/pdf2svg/ - There is also a demo version.
http://www.pstoedit.net/pstoedit - with SVG plugin
many more ...
Or does
Postscript still have more power than SVG at the exact "fixation" of
text on a page?
Theoretically no, as both rendering models allow arbitrary precision in
placing graphics objects via transformation matrices.

But PDF and/or PS include some more printer-related functions: Alternate
colorspaces (CMYK, Device-dependent, spot colors ...), rendering intent
plus a few more. That's why SVG V1.1 is unsuitable for professional
graphics in print. SVG V1.2 will address some of these issues.

But in practice, Postscript may achieve better results for other
reasons, than a better model. Postscript is supported by many advanced
printers natively and licensed from Adobe. Since Adobe has control over
every sold Postscript printer, they can achieve a high level of
compliance to many details.

So, with Postscript there is less chance for errors. Printer makers
already started to put PDF renderers into the firmware of their
printers, e.g. current HP LaserJet models.

With SVG, there may be a longer pipeline of software (drivers,
converters, ...) where inconsistencies between different implementations
could cause differences.
Mark


Ralf
Jul 20 '05 #11
For completeness sake, I'll mention our own commercial PDF to SVG batch
conversion software, pdf2vector, which is regularly chosen to convert
forms. It has different options to deal with fonts, which indeed tends
to be the main hurdle for an accurate conversion.

My simple take on this subject: SVG conceptually can be able to replace
PDF, since the core imaging model is indeed very similar. But the
current specification will need to be expanded with a number of
document/print-related features to make that happen. And then of course
there's the whole thing of industry support and application
infrastructure.

But to give an example: our software has been implemented to serve
multi-page financial reports from Oracle Reports (generated as
PostScript) to the client's Web browser as SVG (using Batik and a Java
applet for rendering). They chose this over PDF, so that the user's
workflow would not be disturbed by Acrobat Reader taking over his
browser window. The pages are a combination of graphics, images and
text.

Jeroen Dekker
--
Visual Integrity Technologies
a division of Square One bv
www.visual-integrity.com
je****@square1. nl

Jul 20 '05 #12
In addition (I don't think this has been mentioned here) SVG is an open
standard, and PDF is not.

If I can output SVG from my python script (python has been held back
from universal domination by crummy text and graphic output, IMO), then
I can view it or print it in any compliant application, on any
platform. You have to mumble that word "compliant" REALLY fast, but
the potential is there.

For that matter, I can read it and munge it in any XML-aware
application. I hope Adobe decides to "push" SVG over PDF. It makes
commercial sense, I think. "Microsoft =>proprietary; Adobe=>open" is
what they should foster in developer's minds.

Jul 20 '05 #13
paron wrote:
For that matter, I can read it and munge it in any XML-aware
application. I hope Adobe decides to "push" SVG over PDF. It makes
commercial sense, I think. "Microsoft =>proprietary; Adobe=>open" is
what they should foster in developer's minds.


With recent purchase of Macromedia by Adobe, I can easily imagine an utopia
where both Acrobat and Flash natively produce SVG output.

Berislav
Jul 20 '05 #14
"paron" <rp*******@engi neer.co.summit. oh.us> wrote:
In addition (I don't think this has been mentioned here) SVG is an open
standard, and PDF is not.


According to Wikipedia, which is hardly infinitely reliable, but is a
starting point:

http://en.wikipedia.org/wiki/Open_standard
"Open standards are publicly available specifications for achieving a
specific task."

http://en.wikipedia.org/wiki/Pdf
"PDF is an open standard"

There doesn't seem to be much universal agreement as to what "Open
standard" means. How do YOU define it?
----------------------------------------
Aandi Inston qu***@dial.pipe x.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.

Jul 20 '05 #15
I guess I had in mind a standard promoted by a non-commercial body like
the W3C. Adobe could do whatever they like with the PDF standard, even
though they publish it. Of course, so could the W3C with SVG, I guess.

It's certainly possible to make a good argument that PDF is as open and
stable as SVG, and I don't want to argue with wikipedia -- too many
people watching it for it to be very far off base.

Still, I prefer SVG -- what if the MacroMedia deal fell through,
Microsoft bought Adobe, and radically altered (extinguished)P DF? Or
some other scenario that can happen to a commercial enterprise that
can't happen as easily to a non-commercial enterprise?

Anyway, that's why I'd prefer SVG. Perhaps I'm overly cynical about
commercial enterprise, maybe not cynical enough about the W3C.

Jul 20 '05 #16
paron wrote:
In addition (I don't think this has been mentioned here) SVG is an open
standard, and PDF is not.
What about:
http://partners.adobe.com/asn/tech/p...ifications.jsp

What about the free tools (all non-Adobe and non-commercial) at:
https://rnvs.informatik.tu-chemnitz....esAndLibraries

Why is SVG more "open" then?
If I can output SVG from my python script (python has been held back
from universal domination by crummy text and graphic output, IMO), then
I can view it or print it in any compliant application, on any
platform. You have to mumble that word "compliant" REALLY fast, but
the potential is there.
The following *free* libs ease PDF output from Python:

ReportLab Toolkit
http://www.reportlab.org/rl_toolkit.html

PDFlib lite
http://www.pdflib.com/products/pdfli...ad-source.html
For that matter, I can read it and munge it in any XML-aware
application.
You're right here. SVG is much more accessible when reading files.
I hope Adobe decides to "push" SVG over PDF. It makes
commercial sense, I think.
I don't think so. Why reinventing everything?

Why not release an "official" way of expressing PDF in XML such as an
XML schema with a spec, and free reference implementations of converters
between PDF 1.6 (and lower) <-> PDF-XML 1.6? Then, all of a sudden, you
could process (parse, read, generate, modify, write) PDF-XML files with
your favourite XML tools. And by linking the converters to existing
programs, current applications could support PDF-XML with little
modifications.

Adobe is definitely working on that but they did not release any
documents or software for the conversion yet - AFAIK. I heard of
commercial Adobe software to do these conversions, but they are
big-money solutions.

It can't be that hard to come up with a reasonable (and standard!) way
of expressing the semantics of PDF operators and constructs in XML
syntax, enabling lossless conversion between the two formats. Again, a
big problem are binary objects so far. What parts of them should be
accessible via XML elements, what parts should remain in binary form for
compatibility with exisiting software and for efficiency?
"Microsoft =>proprietary; Adobe=>open" is
what they should foster in developer's minds.


That would be far too simple.

Ralf
Jul 20 '05 #17
Ralf Koenig <ra*********@in formatik.tu-chemnitz.de> wrote:
Why not release an "official" way of expressing PDF in XML


Here's one:

< pdf >...contents of PDF 1.6 file in asci85 format ... < /pdf >

It's hard to see what advantage it would have, except being 20%
larger, and thereby helping struggling disk space manufacturers.

If you are talking about an XML mapping of PDF at a lower level, it's
worth bearing in mind that, in order to produce PDF files of a
reasonable size, Adobe had to add binary, compressible, streams
collecting together many objects...

This would not be an easy sell. "Use new miracle PDF XML! It's just
like the old PDF, except that very few applications handle it so far,
and it's several times larger than the original PDF".
----------------------------------------
Aandi Inston qu***@dial.pipe x.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.

Jul 20 '05 #18
I'd really like to do input and output on screen and output on paper
using one technology. SVG just seems like the best bet, if a large
segment of the industry supports it. I could design specialized GUI
widgets and output results either to screen or paper, cross-platform,
without using proprietary formats.

If only SVG were adopted as a standard for graphic work by a large
segment of the industry.

As Berislav says, ". . . utopia . . ."

Jul 20 '05 #19
Aandi Inston wrote:
"paron" wrote:
In addition (I don't think this has been mentioned here) SVG is an open
standard, and PDF is not.

According to Wikipedia, which is hardly infinitely reliable, but is a
starting point:

http://en.wikipedia.org/wiki/Open_standard
"Open standards are publicly available specifications for achieving a
specific task."

http://en.wikipedia.org/wiki/Pdf
"PDF is an open standard"

There doesn't seem to be much universal agreement as to what "Open
standard" means. How do YOU define it?


This is true -- there is not a comprehensive and accepted definition
of "open standard".

Many people, though, feel that in addition to the standard being
published and everyone can use it royalty-free, that an "open
standard" must also be controlled by a consortium of competing
companies and organizations in their sphere of interest. The PDF
specification, for example, is not controlled by the "PDF Consortium".
Rather, it is ultimately controlled by a single corporation: Adobe. On
the other hand, SVG is essentially controlled by W3C, which comprises
a large number of corporations and organizations, many of which
compete with each other.

Mark
Jul 20 '05 #20

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

Similar topics

5
2518
by: Paul Miller | last post by:
We've run into minidom's inabilty to handle large (20+MB) XML files, and need a replacement that can handle it. Unfortunately, we're pretty dependent on a DOM, so a pulldom or SAX replacement is likely out of the question for now. Has someone done a more efficient minidom replacement module that we can just drop in? Preferrably written in C?
53
4969
by: Kerberos | last post by:
I followed Dan Cederholm's image replacement tutorial, to replace a header tag by a logo. The h1 is clickable if no CSS is applied but it I replace it by the logo, the area isn't clickable anymore when I pass the mouse over the logo. Is there a way to replace a link by an image that will still be clickable? Thanks, -- Kerberos.
3
9748
by: Vibha Tripathi | last post by:
Hi Folks, I put a Regular Expression question on this list a couple days ago. I would like to rephrase my question as below: In the Python re.sub(regex, replacement, subject) method/function, I need the second argument 'replacement' to be another regular expression ( not a string) . So when I find a 'certain kind of string' in
2
420
by: brian | last post by:
Hi, before coming to .NET, I utilized regular expressions mostly in JScript / JavaScript and also in my favorite text editor: TextPad (www.textpad.com) I don't know about JScript/JavaScript, but in TextPad's implementation of Regular Expressions, you can do a replacement expression like this: \i For every single non-overlapping match, it places an incrementing number starting with zero. Thus, if you searched for ^ (beginning of line...
20
5704
by: Paul D. Boyle | last post by:
Hi all, There was a recent thread in this group which talked about the shortcomings of fgets(). I decided to try my hand at writing a replacement for fgets() using fgetc() and realloc() to read a line of arbitrary length. I know that the better programmers in this group could write a more robust function, but here is my shot at it anyway. I would appreciate people's comments on my fget_line() code below (usage example included). Any...
3
9253
by: Jeffrey D. Gordon | last post by:
I'm wanting to replace Field Values in an existing PDF, I've done this with PHP by doing a replace in the file. I've been able to read the file in a byte array in c# but all my attempts to replace strings in a binary file have led to failure for the last couple of days. I've stared at this function for too long I've become crosseyed ;) Any suggestions, or is there an easier way to replace in a byte array og
1
2332
by: lawrence k | last post by:
Want to replace the limit clause in a query, but can't get it right. What's wrong with this: $pattern = "(.*)limit (.*)"; $replacement = '$1'; $replacement .= "LIMIT $limit"; $replacement .= '$2'; $query = preg_replace ($pattern, $replacement, $query);
8
8324
by: vidya.bhagwath | last post by:
Hello Experts, I am using std::string object as a member variable in one of the my class. The same class member function operates on the std::string object and it appends some string to that object. My sample code is as follows. ..h file content---------- #include <stdio.h>
3
2290
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
I've added a web deployment project and want to use the config section replacement but I'm obviously not understanding something. I have set up an alternate appSettings file, test.appSettings.config, and when I build the appSettings are correctly overridden, but I also end up with a copy of test.appSettings.config in my web site. If I have config sections for several environments they all get copied. How do I stop the copy? I wondered...
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10029
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9077
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7567
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5588
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4144
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 we have to send another system

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.