Tazintosh Posted February 27, 2019 Posted February 27, 2019 Hi, I just discovered that a lot of my recently exported PDFs were rasterised on the last Beta. More precisely: every gradients or masks present on my file will be converted as images once PDF exported (whatever the PDF export setting). The current stable version is however behaving perfectly as expected, producing vector based PDFs.
Staff Sean P Posted February 28, 2019 Staff Posted February 28, 2019 Hi Tazintosh, Do you have some afdesign files and their resulting PDFs that you could attach that exhibit this issue please?
Tazintosh Posted February 28, 2019 Author Posted February 28, 2019 Hi Sean, Precision: the gradient are rasterised is one of the color contains alpha. BasicShapesToPDF.afdesign BasicShapesToPDF.pdf
Staff Sean P Posted February 28, 2019 Staff Posted February 28, 2019 Hi Tazintosh, Unfortunately I cannot reproduce this - looking at your file I've recreated it in 1.6 which I've then opened in 1.7. Using the same export presets in both 1.6 and 1.7 and then importing into Designer 1.7 shows the same objects being rasterised. I would expect objects with Filter Effects to be rasterised as these are not supported in PDF. Have you tried using the transparency tool to apply the transparencies on the objects rather than as a 0% Opacity gradient node? See attached PDFs I've exported and also the AFDesign file. GradientsPDF_X4_17.pdf GradientsPDF_X4_16.pdf GradientsPDF_ForPrint_17.pdf GradientsPDF_ForPrint_16.pdf GradientsPDF_ForExport_17.pdf GradientsPDF_ForExport_16.pdf GradientsPDF.afdesign
Tazintosh Posted April 3, 2019 Author Posted April 3, 2019 On 2/28/2019 at 11:40 AM, Sean P said: I would expect objects with Filter Effects to be rasterised as these are not supported in PDF. Have you tried using the transparency tool to apply the transparencies on the objects rather than as a 0% Opacity gradient node? Hi Sean, sorry for the delay. If you we focus on the top right rectangle, you'll notice it has —no— filter effect. Still it's rasterised while it's a simple gradient with a transparent color. BTW, transparency tool produce exactly the same non expected result: a rasterised layer. Sketch however is behaving as expected for such a standard need.
Tazintosh Posted May 27, 2019 Author Posted May 27, 2019 Hi Sean, sorry to bump and push on this, but everything basic I'm exporting is still rendered as image (see above explanations). This is a big issue for me.
Dave Harris Posted May 28, 2019 Posted May 28, 2019 On 4/3/2019 at 11:51 AM, Tazintosh said: If you we focus on the top right rectangle, you'll notice it has —no— filter effect. Still it's rasterised while it's a simple gradient with a transparent color. For me it becomes a shaded rectangle, drawn with a soft mask that is a transparency group that is also a shaded rectangle. If I hide the other objects, there are no bitmaps or raster elements in the PDF; it's entirely vector. This requires a PDF format that supports transparencies (so not PDF/X-1a or PDF/X-3), and also needs Allow advanced features checked in the PDF options (this is off by default for PDF for Export and PDF For Web presets). The File > Export > PDF panel will have (Nothing will be rasterised) next to the Raster DPI field when the settings are correct. Here is the PDF: 1.pdf. However, if I then reimport the PDF into Affinity, the transparency group is rasterised during the import. This is because PDF transparency groups are more general than what Affinity can support, and it's not yet clever enough to recognise the simple case of a gradient that it produced itself. I get similar results from Designer 1.6.1. Patrick Connor, Sean P and Tazintosh 3
Tazintosh Posted May 29, 2019 Author Posted May 29, 2019 Hi Dave, Checking "Allow advanced features" did "solved" the issue, but I never had this need before. This is curious, either the export behaviour has changed, either I never exported gradient alpha before (would be surprising), either I never paid attention till then (oO) I'll pay much more attention now. Question, how did you checked back your PDF to assume that nothing was rasterised if "the transparency group is rasterised during the import" ?
Dave Harris Posted May 29, 2019 Posted May 29, 2019 58 minutes ago, Tazintosh said: Question, how did you checked back your PDF to assume that nothing was rasterised if "the transparency group is rasterised during the import" ? I have a tool that explores a PDF at low level, without drawing it, to see the operations it would draw with.
fde101 Posted May 29, 2019 Posted May 29, 2019 6 hours ago, Tazintosh said: Is it an internal tool ? Not sure what @Dave Harris is using, but there are a few tools like this around - I'm assuming he is referring to something similar to this: https://xfiniumpdf.com/xfinium-pdf-inspector/xfinium-pdf-inspector-overview.html
Dave Harris Posted May 30, 2019 Posted May 30, 2019 22 hours ago, Tazintosh said: Is it an internal tool ? Yes.
Recommended Posts