>
> PDF doesn't have embedded SVG - but if you're familiar with SVG, the problem 
> with doing this with SVG is conceptually equivalent to what you'd have to do 
> with PDF...

it seems to have vector graphics that could scale,
what term could I  use to denote such things? LOL
Hence SVG ( I know, another word argument but  
I needed a concise name  that made  a point I'll 
try to use quotes... If you have a more apropos 3
letter acronym for PDF I can use that ... ). 

>
> Consider the follow (pseudo-coded) SVG:
>

I wish I could but hotmail decided my "plain text" reply
doesn't really mean plain text and converted your information
into greyed-out rectangles with cave drawings inside...
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Now, how would you go about rasterizing the paths while keeping the text in 
> the same Z-ordering with respect to the rest of the content? And that's even 
> assuming no transparency or filter effects in place.

I guess this comes down to the OP's intent of preserving
the text. If you mean "text" that is part of the "SVG" part,
I would presume that gets rendered into the BMP ( for lack
of a shorter term denoting a blob of meaningless pixels).
If you mean text around a blob of pixels of known size 
and constant Z, it would seem to be an easy problem to put
one behind the other but certainly non-uniform Z would complicate
things although you could pass back a Z-buffer back from
the rendering etc etc. 
Alternatively, if you could pull the text out of the SVG
and "do something with it" like write it on top
of the "SVG" output that shouldn't be difficult either
but what is the point/objective if you are just going to rasterize
( remove information ) anyway. 

>
> You suggested the user just open this up in an editor (an SVG editor, in this 
> case). That might be OK if I had access to all the same fonts that the author 
> did (assuming I am not the original author of the document) - but what if I 
> don't? There would be no way for to "reauthor the content" and ensure that 
> things did NOT reflow or relayout - let alone change the appearance.

The original issue seemed to be just "doing what the
renderer would do" and writing a result in 
place of the "SVG" back into the PDF. 
Are you concerned that the PDF doesn't
have enough information to render itself without being opened
in Reader? Certainly if you want to change sizes of surrounding
text that would require reauthoring or a separate "reflow"
package.



>
> Leonard
>
> -----Original Message-----
> From: Mike Marchywka [mailto:[email protected]]
> Sent: Thursday, March 26, 2009 9:22 AM
> To: [email protected]
> Subject: Re: [iText-questions] How to duplicate PDF text but rasterize 
> graphics
>
>
>
>>
>> You just like arguing ;).
>
> No, I was just trying to do my taxes. LOL.
>
>>
>> I don't think you are understanding the problem that the person is having. 
>> It's not about simply finding already rastered images and replacing them 
>> with alternate versions - that's pretty simple and there is an example of 
>> using iText for doing just that. The problem is a need to convert/rasterize 
>> all vector artwork on the page into one or more raster images WITHOUT 
>> impacting the text AND WITHOUT changing any visual appearance of the content 
>> of the page. In the process, you will probably want to optimize the output.
>
> Well, I have to admit the vector art has more information content than
> the rasterized version but it seems like this is just a matter of extracting
> the the "SVG" component from the PDF, feeding it to a renderer, and 
> reinserting the BMP/JPEG into the pdf. The text is fixed or unrelated (no?) 
> so I would imagine the big issue is z-ordering or getting transparent pixels 
> in the right places. At worst then this come down to the same "typesetting" 
> or "reflow"
> issues that always come up. Its not unreasonable to expect someone to
> buy or otherwise obtain an opensource typsetting/formatting package.
>
> So the complexity depends on quality? It would depend on what you want to
> replace the SVG stuff- best quality for the size or something like
> a placeholder.
>
> I guess I would like to get some idea of the model storage capabilities
> too- if you can store more complicated information in a usable ( by
> something other than canned proprietary apps) that would be great.
>
>
>>
>> Actually, this problem is difficult with HTML too. Consider an HTML page 
>> that uses CSS for absolute or relative positioning of content, so that there 
>> is an opportunity for multiple objects to overlay & intersect with each 
>> other. Your task is to reduce that to the smallest number of objects that 
>> produce the same visual result with all text kept intact.
>>
>> Now, add to that all the complexities of the PDF rendering model - 
>> overlapping (Z-ordered) objects, color management, rich transparency model, 
>> etc. And these are all things that are being considered for HTML5 - so that 
>> the same problems would now manifest themselves in that environment as well.
>
> If I have some SVG interspersed with "normal stuff" I'm not sure
> how or if this would differ.
>
>
>>
>> So again, this has nothing to do with structured/tagged PDF - it's a 
>> completely unrelated problem/issue.
>>
>
> I'm not claiming the specification is all that limiting, just trying
> to get some idea of what the end products can and can not do. I'll postpone
> the witch-hunt until I have some better direction :)
>
>
>
>> Leonard
>>
>
>
> _________________________________________________________________
> Express your personality in color! Preview and select themes for Hotmail(r).
> http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
> ------------------------------------------------------------------------------
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
>
> ------------------------------------------------------------------------------
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php

_________________________________________________________________
Internet Explorer 8 – Get your Hotmail Accelerated.  Download free!
http://clk.atdmt.com/MRT/go/141323790/direct/01/
------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to