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


\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}
\usepackage[a-1b]{pdfx}

\usepackage[rgb]{xcolor} 
\colorlet{shadecolor}{gray!25}


\usepackage[backend=biber, style=ieee]{biblatex}
\addbibresource{Literatur3300.bib}
\urlstyle{sf}
\DeclareNameAlias{default}{last-first}



\usepackage{amsfonts}
\usepackage{amsmath}

\usepackage{hyperref}

\usepackage{comment}

%\pdfxSetCMYKcolorProfileDir{CoatedFOGRA39.icc⟩}

\usepackage[printonlyused, nohyperlinks]{acronym}

\setlength{\parindent}{0pt}

\RedeclareSectionCommand[%
  %beforeskip=-2\baselineskip,
  afterskip=0.167\baselineskip
]{subsubsection}



\usepackage[automark]{scrlayer-scrpage}
\clearpairofpagestyles
\ohead{\headmark}
\automark*{section}
\ofoot*{\pagemark}

\DeclareTOCStyleEntry[beforeskip=0pt]{chapter}{chapter}
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.

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


\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}
\DeclareNameAlias{default}{last-first}

\usepackage{amsfonts}
\usepackage{amsmath}

%\usepackage{hyperref}

\usepackage{comment}

%\pdfxSetCMYKcolorProfileDir{CoatedFOGRA39.icc⟩}

\usepackage[printonlyused, nohyperlinks]{acronym}

\setlength{\parindent}{0pt}

\RedeclareSectionCommand[%
  %beforeskip=-2\baselineskip,
  afterskip=0.167\baselineskip
]{subsubsection}


\usepackage[automark]{scrlayer-scrpage}
\clearpairofpagestyles
\ohead{\headmark}
\automark*{section}
\ofoot*{\pagemark}

\DeclareTOCStyleEntry[beforeskip=0pt]{chapter}{chapter}

\hyphenation{De-zi-mal-tren-nung}

\usepackage[a-1b]{pdfx}
\hypersetup{hidelinks}



\begin{document}

\end{document}

Post Reply