oh... bad news for me. thanks for trial.
So, i have to create a SVG-file instead. Beause its not possible for them to edit this large PDF-File without named elements...

Tobias


Jeremias Maerki schrieb:
Tobias,
I took a quick look. The example was maybe a bit simplistic to read
patterns from it: just one rectangle. Anyway, this is the content
stream:
/OC /MC0 BDC 0 0.576 0.886 0 k
0 0 0 1 K
4 M /GS0 gs
200 153.63 -152.481 170.37 re
B
EMC
So Illustrator makes use of the /OC (optional content, a PDF 1.5 feature)
together with marked content. /MC0 is the identifier for the optional
content group and there's a Properties dictionary that assigns /OC the
/Name "NamedGroup1". I guess that's what you were looking for. It's also
pretty much the same mechanism I've seen Illustrator use for layers
which some people were after some time ago.

As I've said, I can only determine at this time what it is you're
looking for. FOP would need some changes to support that. It could also
be a bit tricky, since in PDFGraphics2D, we only get painting
instructions. At that point there's no more information on the "id"
attributes in SVG. I guess that would require some special Batik element
bridges to carry this information over to the PDF. Definitely not just a
two-day task.

HTH

On 26.11.2009 12:07:21 Tobias Schulz wrote:
Hi Jeremias,

thanks for your help.

here are the requested Illustrator AI/PDF samples.

Tobias


i dont know what you mean with named destinations. it's difficult to translate the german words to matching english words....

so, i try again.

i use a fo-document to include a external svg-file:

<fo:external-graphic src="'url(test.svg)'" content-height="100%"/>

svg sample:

<g id="i_need_this_id_in_pdf">
<rect id="i_need_this_id_in_pdf_too" x="56.589" y="83.25" fill="#F9F342" width="10.236" height="56.693"/> <rect id="i_need_this_id_in_pdf_too2" x="80.589" y="100" fill="#F9F342" width="10.236" height="56.693"/>
</g>


if you open the svg file in illustrator you are able to see the named elements / layers or how it named in english... (watch screen-ai-svg.gif)

but if i create the pdf with: fop -fo test.fo -pdf test.pdf and open the resulting pdf in illustrator all names are gone. (watch screen-resulting-pdf.gif)

i tried to add some more attributes like "label" , "desc" and "title" but - no luck...

thanks
tobias


Jeremias Maerki schrieb:
Do you mean named destinations? If yes, that's not supported from within
SVG. I don't have Illustrator, so I can't find out what exactly it would
look for. Maybe you can post a small Illustrator example so I can find
out what it is you're looking for. I might be able to give some pointers.
But at any rate, the functionality you're looking for is most probably
not available.

On 24.11.2009 20:17:58 Tobias Schulz wrote:
hi,
i use "fo:external-graphic" in xsl documents to include and render svg-files to pdf. in the resulting pdf file all elements are labeled like "<path x>" or "<group>".

is it possible to use the orininal group/element id-values in svg as labels in pdf instead? it would be much easier to edit the pdf file in AdobeIllustrator.

i tried to add "desc" and "title" tags/attributes in my svg-file, but without any results.

btw. really, realy nice tool! thanks!

Versions:
FOP release 0.95
Windows 7 64bit / Windows Vista 64bit
JRE 1.6.0.16


i hope i did not miss a similar question...
thanks for your help!
tobias

Jeremias Maerki


--
**** ACHTUNG! Ab dem 01.09.2009 neue Adresse! ****

Tobias Schulz >>> In der Kirchtanne 27 >>> 64297 Darmstadt-Eberstadt
[email protected] >>> http://www.propperdx.de
____________________________________________________________________________
Diese Nachricht ist mit einer elektronischen Signatur versehen



Viele Grüsse
Jeremias Märki
_________________________________________________________
Jeremias Märki, Software-Development and Consulting
Contact Information: http://www.jeremias-maerki.ch/contact.html
Blog: http://www.jeremias-maerki.ch/blog/

--
**** ACHTUNG! Ab dem 01.09.2009 neue Adresse! ****

Tobias Schulz >>> In der Kirchtanne 27 >>> 64297 Darmstadt-Eberstadt
[email protected] >>> http://www.propperdx.de
____________________________________________________________________________
Diese Nachricht ist mit einer elektronischen Signatur versehen





Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--
**** ACHTUNG! Ab dem 01.09.2009 neue Adresse! ****

Tobias Schulz >>> In der Kirchtanne 27 >>> 64297 Darmstadt-Eberstadt
[email protected] >>> http://www.propperdx.de
____________________________________________________________________________
Diese Nachricht ist mit einer elektronischen Signatur versehen

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to