Skia just began putting the color spaces from SkImages into PDFs [0]
which should end up in the next Skia branch. So if you use high enough
resolution images and tag them with their color space, things may be
mostly PDF/X-4 compatible with very new Skia. That being said, at the
moment PDF/X conformity isn't really an objective, though Skia is
interested in making things more correct generally (like getting the
color spaces into the PDF). So if there is some specific PDF/X
required behavior that Skia really should implement anyway (would be
of benefit to users other than just checking a compatibility box, like
emitting a PDF/X tag) we would be interested to know what could be
improved. In particular it looks like unless one sets
SkPDF::Metadata::fPDFA one won't get any /OutputIntents which is
required with PDF/X, and at the moment that is hard coded to an sRGB
ICC profile (instead of allowing a color space to be supplied by the
user).
[0]
https://skia.googlesource.com/skia/+/eff8181a629035377ad4e74c24aa250d4c095a90
> To view this discussion on the web visit
https://groups.google.com/d/msgid/skia-discuss/CACwGi-5e27dXUC9tCc_gnF5qwXP_4tWLWnkgk4N4aCGmeY0bNQ%40mail.gmail.com.