We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How are fonts and colors treated when converting PDFs?

Hi all,



I’m evaluating several products to perform PDF to Raster conversion in Java.



In our production cycle we need to be very precise when handling the following conditions:



1. CMYK color. If the PDF contains elements like shapes, text that use CMYK colors we need to convert the whole file to CMYK TIFF by keeping the exact color codes. No color conversion shall occur in order to ensure maximum fidelity.

2. Enable/Disable anti aliasing of tex rendering on document basis

3. Handling of missing fonts. If a font is not embedded in the PDF we need to be able to either stop processing the document (blocking error) or replace it with another font of our choice without falling back to the OS’ fonts folder (which would result in non-consistent behavior across multiple operating systems).



Can we achieve these 3 requirements with Aspose?



Thank you in advance for your help.



Regards

Matteo

Hi

				<span id="ctl00_bcr_up___TextboxFirstName">Matteo,<br><br>We're looking into your requirements at our end and will get back to you the earliest possible. <br><br>Regards,<br></span>

Hi Matteo,

I have looked into your requirements in detail, and I’m afraid these requirements are currently not supported by Aspose.Pdf.Kit. However, if you could share some more details regarding your requirements, we’ll try to provide support for these features in our future versions. Nevertheless, these features might not be available in short time.

mgenerali:

1. CMYK color. If the PDF contains elements like shapes, text that use CMYK colors we need to convert the whole file to CMYK TIFF by keeping the exact color codes. No color conversion shall occur in order to ensure maximum fidelity.



Do you want the Aspose.Pdf.Kit to decide whether CMYK color is used in the PDF and then convert the whole PDF to CMYK TIFF? Does that mean that any element containing CMYK color should make the component behave as mentioned above or only some particular elements? Any other details regarding your requirement will be helpful.

mgenerali:

3. Handling of missing fonts. If a font is not embedded in the PDF we need to be able to either stop processing the document (blocking error) or replace it with another font of our choice without falling back to the OS’ fonts folder (which would result in non-consistent behavior across multiple operating systems).


Do you want to specify the font of your choice before starting the conversion using the component? What if there are multiple fonts? Would you like to specify multiple alternatives for that or just a single alternative font?

Please share your further thoughts. We’re very sorry that the component is unable to satisfy your requirement at the moment.

Regards,

Hi,



thank you for your reply.



CMYK: the idea is to specify a color space (either RGB or CMYK) to be used when rasterizing the pdf. Any element that matches the requested color space shall keep the same color codes in the rasterized version. Any element that doesn’t match the requested color space shall be converted using the color profile (if supported).



Font: we should provide a substitute for every potentially missing font. During rasterization if the font is not embedded (hence requires substitution) and no substitute is found, raise an error.



Thanks

Matteo

Hi Matteo,

Thank you very much for sharing further details.

We’ll log your requirements, so our team would be able to investigate. However, as I shared earlier, we’ll not be able to provide support for these features in short time.

We’re sorry for the inconvenience.
Regards,