PDF stroke and fill shape should be imported as a single object, not two separate objects
PDF stroke and fill shape should be imported as a single object. Currently Illustrator parses such shapes as two objects: fill, stroke. This behaviour can be seen when exporting as PDF in Illustrator (without AI editing capabilities) and importing it again.
Note: This seems to be caused by incorrect handling of B and B* PDF operators (fill + stroke in one object).
-
K. K. commented
I generate PDF files, and I have noticed this limitation. The loss of information on export/import seemed to confirm it.
From my understanding of PDFs specs it requires B painting operator. Otherwise S operators are used for stroke and F are used for fill. My suspicion is that B operator falls back to stroke and fill as separated objects. But it might also probably mean that, as you said, objects are saved as S and F instead of single B operation too.
-
This is how it’s stored in a PDF, as two objects, as far as I’m aware. This is how Ai imports it back.
Combining them back would be an interesting thing to have, but that would be an interpretation, and perhaps error prone.
Given the fact Illustrator is not a general purpose PDF-editor, and the ’Ai editing compatibility' is a way to ensure the complete editability — this is not a bug, but a feature request.