Pdflatex

Hadi Abed, Khawla Khawla.Hadi-Abed at elekta.com
Tue Oct 20 11:19:43 CEST 2020


Hello Karl,
Thanks for your response,
The graphics are included in the document from the beginning (before adding this command); but these are in a wrong place. The Texworks put them in the last two page in the generated pdf document or in pdflatex viewer and not in their correct position. Just one graph is positioned in a correct page, but in the center of this page not at the top of the page (as I selected to have them in the top of the page "ht!" ). When I use this "\pdfminorversion=7", then the Tex viewer refuse to generate any pdf document and I receive the following:

"! pdfTeX error (setup): PDF version cannot be changed after data is written to the PDF file.
<to be read again> 
                   \edef 
l.54 \begin  {document}                       
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on ICON(8073)_AcceptanceReport.log." 
Please find the attachment document errors

could you please let me know how I can correct this error?

I start my Tex file with the following: 

\documentclass[12pt,a4paper]{article}
%%
\input {Sitedata.tex}
\input {tabledata.tex}
\input {tabledata_xyz.tex}
\newcommand{\IssueTable}{uitable}
%%
% Add the necessary packages used for the tex
\usepackage {cmap}; \usepackage [a-1b]{pdfx}; \usepackage[T1]{fontenc}; \usepackage[english]{babel}; \usepackage[options]{mcode}; \usepackage{graphicx}   % needed for including graphics e.g. EPS, PS   
\usepackage{fancyhdr}; \usepackage{lastpage}; \usepackage{mathabx}; \usepackage{helvetic}; \usepackage{syntonly}; \usepackage{eso-pic}; \usepackage{makeidx}; \usepackage{mcode}
\usepackage[framed,numbered]{mcode}; \usepackage {epstopdf}; %\RequirePackage{pdf14}

 \pdfminorversion=7

%%%
%The page style
\topmargin -1.2cm        % read Lamport p.163
\oddsidemargin -1.2cm   % read Lamport p.163
\evensidemargin -0.04cm  % same as oddsidemargin but for left-hand pages
\textwidth 16.5cm
\textheight 23.8cm 
\pagestyle{fancy}       % Uncomment if don't want page numbers
\newcommand\BackgroundPic{\put(0,0){\parbox[b][\paperheight]{\paperwidth}{%\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight, keepaspectratio]{Background.png}%
\vfill
}}}
%%
\begin  {document}  
\setlength{\headsep}{1.4cm} 
%% Create title and first page of the report
\begin {center}
\setlength{\fboxrule}{3pt}%
\fcolorbox{ black}{white}%
{\parbox{18cm}{%
\begin{center} 
\begin{enumerate}
\setlength{\parskip}{5ex plus 0.5ex minus 0.2ex}
\hspace{-4mm}

{TEXT}

\vspace{10 mm}	
\end{enumerate}
\end {center}
}}
\end{center}
%%% insert head and foot informations
\fancyhf{}
\fancyhead[[LE,RO]{\vspace*{-0.8cm} % adds a little vertical space
\lfill\includegraphics[width=0.3\textwidth]{Elekta.png}\hfill\rule{0cm}{0cm}% first row of evenly spaced images
  \hfil\includegraphics[width=0cm]{}\hfil% second row (a centered image)
}

\lfoot{BL0646, V4}&{\cfoot{\bfseries \IssueFooter}}&{\rfoot{ \bfseries{\bfseries\thepage}/18}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
%%
\newpage
\input {Calibrationsprofile.tex}
%%
 \newpage
{\large Profiles}
 % the profiles of the 4mm collimator			
	\input {precisionprofilesc4.tex} 		
%%
 \newpage
 % the profiles of the 8mm collimator                                  
	\input {precisionprofilesc8.tex}		
%%
 \newpage
% the profiles of the 16mm collimator	
 	\input {precisionprofilesc16.tex}
 \end {document}
Thanks in advance, Khawla	


Khawla Hadi Abed, Medical Physicist, Applied Physics Specialist | Medical Physicist, Senior Physicist
Elekta Instrument AB
P.O. Box 7593, 
SE-103 93 Stockholm, Sweden
Visiting Address: 
Kungstensgatan 18
Office: +46 (8) 58725464 | Mobile: +46 (73) 0922166 
Khawla.Hadi-Abed at elekta.com | www.elekta.com
Elekta Instrument AB Reg No. 556492-0949
This message is confidential and may be legally privileged or otherwise protected from disclosure. ​If you are not the intended recipient, please telephone or email the sender and delete this message ​and any attachment from your system; you must not copy or disclose the contents of this message ​or any attachment to any other person.
Any views expressed in this message are those of the individual sender, except where the sender specifies ​and with authority, states them to be the views of Elekta. Elekta may monitor email traffic data.
-----Original Message-----
From: Karl Berry <karl at freefriends.org> 
Sent: den 19 oktober 2020 23:33
To: Hadi Abed, Khawla <Khawla.Hadi-Abed at elekta.com>; support at tug.org
Subject: RE: Pdflatex

    ``pdfTeX warning: pdflatex.exe (file
    ./8073c8x-eps-converted-to.pdf): PDF inclusion: found PDF version
    <1.7>, but at most version <1.5> allowed

Those are warnings, not errors. Are you sure the graphics are not getting included despite those messages?

It is possible (though unlikely) that the graphics actually require PDF 1.7.
You could add
  \pdfminorversion=7
near the beginning of your document. It should eliminate the messages, anyway.

    LaTeX Warning: Float too large for page by 501.51253pt on input line 10''.

Another warning. Maybe something needs to get scaled down.

Hope this helps,,
Karl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20201020/b537839d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image891090.jpg
Type: image/jpeg
Size: 5184 bytes
Desc: image891090.jpg
URL: <https://tug.org/pipermail/texhax/attachments/20201020/b537839d/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Errors.png
Type: image/png
Size: 49544 bytes
Desc: Errors.png
URL: <https://tug.org/pipermail/texhax/attachments/20201020/b537839d/attachment-0001.png>


More information about the texhax mailing list.