GeneralProblem with PDF/A and xcolor

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dmarc
Posts: 7
Joined: Sat Aug 20, 2022 3:37 pm

Problem with PDF/A and xcolor

Post by dmarc »

Hey,

Im trying to create a pdf/a document. The check with Adobe Acrobat gives me to following protocol:
https://ibb.co/7KC9DSW

I think I know why some of this problems occur, but I don't know how to solver them:
  1. I'm using pictures in the pdf-format, that I include with includegraphics. I created this pdf-pictures from illustrator as .ps and then converted them with Adobe distiller in PDF/A-1b CMYK. (I think thats why "CMYK used, but pdf/a OutputIntent noch CMYK" appears).
  2. I'm sure the fonts that are not embedded are part of Matlab graphics that I included as .pdf files. By converting these files in Adobe Acrobat to pdf/a-1b the above 2 error messages disappear.
  3. The transparency problem is due to png graphics that I have included. I will replace them with jpg graphics.
The following problems I can not solve myself and ask you for your help:
  1. Annotation has no flags entry
  2. Annotation not set on print
  3. How to set xcolor to cmyk, instead of of rgb? If iI set it to cmyk, then the warning appears that the package has already been loaded with hyperref and rgb options. I however a PDF/A compliant document with cmyk options.
  4. Is it a problem to convert the Matlab pdf files to pdf/a1-b in Acrobat, as this converts the colors to rgb, but I want cmyk?

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,12pt,
ngerman,
headsepline,
twoside=false,
listof=totoc,
]{scrbook}
\usepackage[left= 2.5cm,right = 2.5cm, bottom = 2.5cm, top = 2.5cm]{geometry}
% ============= Packages =============
\usepackage[
pdftitle={Testdocument},
pdfsubject={},
pdfauthor={Marc},
pdfkeywords={},
%Links nicht einrahmen
hidelinks
]{hyperref}
% Standard -packages
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx, subfig}
\graphicspath{{img/}}
%\usepackage{fancyhdr}
\usepackage{lmodern}
\usepackage{color}
\usepackage{transparent}
\usepackage{ragged2e}
%\usepackage{showframe}
\usepackage{scrhack}
\usepackage[onehalfspacing]{setspace}
\usepackage{siunitx}
%\usepackage{color}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{framed}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thank you so much for your help

Marc

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

dmarc
Posts: 7
Joined: Sat Aug 20, 2022 3:37 pm

Problem with PDF/A and xcolor

Post by dmarc »

I managed to create a PDF/A compliant file usind the following code:

In addition, the following steps were taken:
  1. Converting alls png files to jpg
  2. Converting all Matlab pdf files with Acrobat Pro to pdfa1-b
  3. Converting all postscript files with Adobe Distiller to rgb a1-b
  4. removing the hyperref package, since its alredy loaded with the pdfx package
  5. using the hidelinks option of hypersetup to prevent colored borders around references.
If anybody know how to fix the last point (using cmyk colors with pdf/a) that would be great!
Currently rgb is used.

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,12pt,
ngerman,
headsepline,
twoside=false,
listof=totoc,
]{scrbook}
\usepackage[left= 2.5cm,right = 2.5cm, bottom = 2.5cm, top = 2.5cm]{geometry}
% ============= Packages =============
% Standard-packages
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx, subfig}
\graphicspath{{img/}}
%\usepackage{fancyhdr}
\usepackage{lmodern}
\usepackage{color}
\usepackage{transparent}
\usepackage{ragged2e}
%\usepackage{showframe}
\usepackage{scrhack}
\usepackage[onehalfspacing]{setspace}
\usepackage{siunitx}
%\usepackage{color}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{framed}
\usepackage[rgb]{xcolor}
%\colorlet{shadecolor}{gray!25}
\usepackage[backend=biber, style=ieee]{biblatex}
\addbibresource{Literatur3300.bib}
\urlstyle{sf}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Post Reply