Page 1 of 1

Convert JPG to PDF

Posted: Mon Aug 10, 2020 9:59 am
by Silvan
Hi all

I want to convert a JPG into an PDF/A document. I'm using the GDPictureConverterClass and call GDPictureConverter.openfromfile(path,4) and GDPictureConverterClass.saveaspdf(path,3). I get a PDF with one page and the image on it. Everything works perfectly except for one thing: my JPG has an ICC-Profile "Adobe RGB 1998" and at the end in the PDF the color space is "Device RGB" (so no ICC-Profile). I opened the image with the GDPictureImage class and exported the ICC-Profile to check the existence and its perfectly fine.
Is there a way to convert the image into a PDF and preserving the color space?

Thanks!

Attachments: want and have state from the Adobe Acrobat Pro objectinspector

Re: Convert JPG to PDF

Posted: Thu Aug 27, 2020 1:01 pm
by Hugo
Hi Silvan,

Our apologies on the late reply.

We are able to provide solution to your issue and have already started to work on it.

I'll keep you updated on its progress.

Regards,

Re: Convert JPG to PDF

Posted: Thu Aug 27, 2020 1:40 pm
by Silvan
Hi Hugo,

Thank you for your reply! I'm looking forward to hear from you.

Regards Silvan

Re: Convert JPG to PDF

Posted: Tue Sep 08, 2020 4:44 pm
by Hugo
Hi Silvan,

We are making decent progress on your task however we still need some more time before this is solved.

When our solution is finished you will be needing to use the ConvertToPDF method:
https://www.gdpicture.com/guides/gdpicture/Gd ... rttopdf%2C

As soon as we have completely sorted this out I will let you know so you may try this out.

Thank you for remaining patient.

Regards,
Hugo Cudd
Technical Support

Re: Convert JPG to PDF

Posted: Wed Sep 09, 2020 2:58 pm
by Hugo
Hi Silvan,

We have implemented a solution for you. This will be available in our next minor release.
GdPictureDocumentConverter class will receive a new property/setting: EnableICC. If this is set to "true" the converter will try to preserve the ICC profile colorspace data from the loaded document during the conversion. This will apply to both with ConvertToPDF and SaveAsPDF methods.

I will let you know when our next release is out.
You can get an idea of this from here: https://www.gdpicture.com/products/version-history/

Regards,
Hugo Cudd
Technical Support

Re: Convert JPG to PDF

Posted: Tue Sep 15, 2020 3:21 pm
by Hugo
Hi Silvan,

Our solution is available for you to download.
You can download it here https://www.gdpicture.com/download-gdpicture/

For future suggestions it would be more practical for you to directly create a ticket here: https://orpalis.zendesk.com/hc/en-us/requests/new

This would better allow us to track your specific problem as well as update you sooner when our newer releases come out.

We are very greatful for your suggestion as it allows us to greatly improve our software overall.
Have a nice day!

Re: Convert JPG to PDF

Posted: Mon Sep 21, 2020 1:54 pm
by Silvan
Hi Hugo

I just tried out the new GDPicture version and it works perfectly fine! Thank you for that fast and transparent development process. Next time i'm gonna use the zendesk link as you suggested.

Kind regards Silvan

Re: Convert JPG to PDF

Posted: Sun Nov 01, 2020 6:35 pm
by Loïc
Thanks a lot Silvan for your feedback!

Much appreciated from all our team.

Cheers,

Loïc