Failed to load PDF - TexWorks
I am trying to export my tex file to a PDF but it is not working. When I open TeXworks (under pdfLaTeX) and hit the green run button, it opens a window and displays my pdf correctly. However, when I click File > Save As and save it as a pdf and then try and open it in Chrome, it says "Failed to load PDF document".
Does anyone know what might be causing this?
Here is my code after removing all personal information:
documentclass{article}
usepackage{titlesec}
usepackage{titling}
usepackage[a4paper, top=0.8in, bottom=0.8in, left=1in, right=1in]{geometry}
usepackage{hyperref}
usepackage[none]{hyphenat}
setlengthparindent{0pt}
hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=blue,
}
urlstyle{same}
titleformat{section}
{fontsize{15}{25}bfseries}
{}
{0em}
{}[titlerule]
titlespacing{section}
{0em}{2.5em}{1.8em}
titleformat{subsection}
{fontsize{10}{0}bfseries}
{}
{0em}
{}
titlespacing{subsection}
{0em}{2em}{0.85em}
renewcommand{maketitle}{
begin{center}
{hugebfseries
theauthor}
vspace{.4em}
email@gmail.com --- number
end{center}
}
begin{document}
title{Resume}
author{A B}
maketitle
section{Personal profile}
x
section{Education}
subsection{University of Example, BSc (Hons) in Computer Sciencehfill A - B }
X\[0.08in] Y:
begin{itemize}
item 1
item 2
item 3
item 4
item 5
item 6
item 7
item 8
end{itemize}
subsection{Schoolhfill A - B}
begin{itemize}
item A --- B
item A --- B
end{itemize}
section{Technical skills}
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
section{A}
subsection{X (href{https://www.google.co.uk}{A}, href{https://www.google.co.uk}{B}) --- x}
x
subsection{X (href{https://www.google.co.uk}{A}, href{https://www.google.co.uk}{B}) --- x}
x
end{document}
Thanks.
pdf texworks
add a comment |
I am trying to export my tex file to a PDF but it is not working. When I open TeXworks (under pdfLaTeX) and hit the green run button, it opens a window and displays my pdf correctly. However, when I click File > Save As and save it as a pdf and then try and open it in Chrome, it says "Failed to load PDF document".
Does anyone know what might be causing this?
Here is my code after removing all personal information:
documentclass{article}
usepackage{titlesec}
usepackage{titling}
usepackage[a4paper, top=0.8in, bottom=0.8in, left=1in, right=1in]{geometry}
usepackage{hyperref}
usepackage[none]{hyphenat}
setlengthparindent{0pt}
hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=blue,
}
urlstyle{same}
titleformat{section}
{fontsize{15}{25}bfseries}
{}
{0em}
{}[titlerule]
titlespacing{section}
{0em}{2.5em}{1.8em}
titleformat{subsection}
{fontsize{10}{0}bfseries}
{}
{0em}
{}
titlespacing{subsection}
{0em}{2em}{0.85em}
renewcommand{maketitle}{
begin{center}
{hugebfseries
theauthor}
vspace{.4em}
email@gmail.com --- number
end{center}
}
begin{document}
title{Resume}
author{A B}
maketitle
section{Personal profile}
x
section{Education}
subsection{University of Example, BSc (Hons) in Computer Sciencehfill A - B }
X\[0.08in] Y:
begin{itemize}
item 1
item 2
item 3
item 4
item 5
item 6
item 7
item 8
end{itemize}
subsection{Schoolhfill A - B}
begin{itemize}
item A --- B
item A --- B
end{itemize}
section{Technical skills}
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
section{A}
subsection{X (href{https://www.google.co.uk}{A}, href{https://www.google.co.uk}{B}) --- x}
x
subsection{X (href{https://www.google.co.uk}{A}, href{https://www.google.co.uk}{B}) --- x}
x
end{document}
Thanks.
pdf texworks
add a comment |
I am trying to export my tex file to a PDF but it is not working. When I open TeXworks (under pdfLaTeX) and hit the green run button, it opens a window and displays my pdf correctly. However, when I click File > Save As and save it as a pdf and then try and open it in Chrome, it says "Failed to load PDF document".
Does anyone know what might be causing this?
Here is my code after removing all personal information:
documentclass{article}
usepackage{titlesec}
usepackage{titling}
usepackage[a4paper, top=0.8in, bottom=0.8in, left=1in, right=1in]{geometry}
usepackage{hyperref}
usepackage[none]{hyphenat}
setlengthparindent{0pt}
hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=blue,
}
urlstyle{same}
titleformat{section}
{fontsize{15}{25}bfseries}
{}
{0em}
{}[titlerule]
titlespacing{section}
{0em}{2.5em}{1.8em}
titleformat{subsection}
{fontsize{10}{0}bfseries}
{}
{0em}
{}
titlespacing{subsection}
{0em}{2em}{0.85em}
renewcommand{maketitle}{
begin{center}
{hugebfseries
theauthor}
vspace{.4em}
email@gmail.com --- number
end{center}
}
begin{document}
title{Resume}
author{A B}
maketitle
section{Personal profile}
x
section{Education}
subsection{University of Example, BSc (Hons) in Computer Sciencehfill A - B }
X\[0.08in] Y:
begin{itemize}
item 1
item 2
item 3
item 4
item 5
item 6
item 7
item 8
end{itemize}
subsection{Schoolhfill A - B}
begin{itemize}
item A --- B
item A --- B
end{itemize}
section{Technical skills}
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
section{A}
subsection{X (href{https://www.google.co.uk}{A}, href{https://www.google.co.uk}{B}) --- x}
x
subsection{X (href{https://www.google.co.uk}{A}, href{https://www.google.co.uk}{B}) --- x}
x
end{document}
Thanks.
pdf texworks
I am trying to export my tex file to a PDF but it is not working. When I open TeXworks (under pdfLaTeX) and hit the green run button, it opens a window and displays my pdf correctly. However, when I click File > Save As and save it as a pdf and then try and open it in Chrome, it says "Failed to load PDF document".
Does anyone know what might be causing this?
Here is my code after removing all personal information:
documentclass{article}
usepackage{titlesec}
usepackage{titling}
usepackage[a4paper, top=0.8in, bottom=0.8in, left=1in, right=1in]{geometry}
usepackage{hyperref}
usepackage[none]{hyphenat}
setlengthparindent{0pt}
hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=blue,
}
urlstyle{same}
titleformat{section}
{fontsize{15}{25}bfseries}
{}
{0em}
{}[titlerule]
titlespacing{section}
{0em}{2.5em}{1.8em}
titleformat{subsection}
{fontsize{10}{0}bfseries}
{}
{0em}
{}
titlespacing{subsection}
{0em}{2em}{0.85em}
renewcommand{maketitle}{
begin{center}
{hugebfseries
theauthor}
vspace{.4em}
email@gmail.com --- number
end{center}
}
begin{document}
title{Resume}
author{A B}
maketitle
section{Personal profile}
x
section{Education}
subsection{University of Example, BSc (Hons) in Computer Sciencehfill A - B }
X\[0.08in] Y:
begin{itemize}
item 1
item 2
item 3
item 4
item 5
item 6
item 7
item 8
end{itemize}
subsection{Schoolhfill A - B}
begin{itemize}
item A --- B
item A --- B
end{itemize}
section{Technical skills}
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
subsection{A}
B
section{A}
subsection{X (href{https://www.google.co.uk}{A}, href{https://www.google.co.uk}{B}) --- x}
x
subsection{X (href{https://www.google.co.uk}{A}, href{https://www.google.co.uk}{B}) --- x}
x
end{document}
Thanks.
pdf texworks
pdf texworks
edited Mar 20 at 14:11
J P
asked Mar 20 at 13:38
J PJ P
32
32
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
TeXworks supplied with MiKTeX has several options to save as, and it is not apparent to a user that when you "save as" PDF you are most likely saving the TeX file with an incorrect PDF extension !
it is easy to see the editor now is editing filename.pdf !!!
One easy way to get the PDF into an external PDF viewer is to ask for a print !
That is the natural way in windows to call a "print to PDF"
HOWEVER
On Windows MiKTeX it tells me It can't and do I want to open the PDF in a viewer !!
I can then print or save the pdf there at will
File > Print Pdf in the pdf window of TeXworks worked, thanks.
– J P
Mar 20 at 14:15
When the file is typeset the pdf is created---there is no need to Save As…. When you ``convert'' (typeset) file.tex the process creates file.pdf.
– Herb Schulz
Mar 20 at 17:44
@HerbSchulz I know but often running a file in a build directory sometimes one wants to save a copy elsewhere so I find in that editor I very frequently use the print trick to open in SumatraPDF where I can then save as to another folder for me is quicker than open Save as, Change the setting from Tex to Pdf, Select the file with right copy, Navigate to the paste location, Then have to paste the file and Re-open it with viewer to check it is OK !
– KJO
Mar 20 at 17:48
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480489%2ffailed-to-load-pdf-texworks%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
TeXworks supplied with MiKTeX has several options to save as, and it is not apparent to a user that when you "save as" PDF you are most likely saving the TeX file with an incorrect PDF extension !
it is easy to see the editor now is editing filename.pdf !!!
One easy way to get the PDF into an external PDF viewer is to ask for a print !
That is the natural way in windows to call a "print to PDF"
HOWEVER
On Windows MiKTeX it tells me It can't and do I want to open the PDF in a viewer !!
I can then print or save the pdf there at will
File > Print Pdf in the pdf window of TeXworks worked, thanks.
– J P
Mar 20 at 14:15
When the file is typeset the pdf is created---there is no need to Save As…. When you ``convert'' (typeset) file.tex the process creates file.pdf.
– Herb Schulz
Mar 20 at 17:44
@HerbSchulz I know but often running a file in a build directory sometimes one wants to save a copy elsewhere so I find in that editor I very frequently use the print trick to open in SumatraPDF where I can then save as to another folder for me is quicker than open Save as, Change the setting from Tex to Pdf, Select the file with right copy, Navigate to the paste location, Then have to paste the file and Re-open it with viewer to check it is OK !
– KJO
Mar 20 at 17:48
add a comment |
TeXworks supplied with MiKTeX has several options to save as, and it is not apparent to a user that when you "save as" PDF you are most likely saving the TeX file with an incorrect PDF extension !
it is easy to see the editor now is editing filename.pdf !!!
One easy way to get the PDF into an external PDF viewer is to ask for a print !
That is the natural way in windows to call a "print to PDF"
HOWEVER
On Windows MiKTeX it tells me It can't and do I want to open the PDF in a viewer !!
I can then print or save the pdf there at will
File > Print Pdf in the pdf window of TeXworks worked, thanks.
– J P
Mar 20 at 14:15
When the file is typeset the pdf is created---there is no need to Save As…. When you ``convert'' (typeset) file.tex the process creates file.pdf.
– Herb Schulz
Mar 20 at 17:44
@HerbSchulz I know but often running a file in a build directory sometimes one wants to save a copy elsewhere so I find in that editor I very frequently use the print trick to open in SumatraPDF where I can then save as to another folder for me is quicker than open Save as, Change the setting from Tex to Pdf, Select the file with right copy, Navigate to the paste location, Then have to paste the file and Re-open it with viewer to check it is OK !
– KJO
Mar 20 at 17:48
add a comment |
TeXworks supplied with MiKTeX has several options to save as, and it is not apparent to a user that when you "save as" PDF you are most likely saving the TeX file with an incorrect PDF extension !
it is easy to see the editor now is editing filename.pdf !!!
One easy way to get the PDF into an external PDF viewer is to ask for a print !
That is the natural way in windows to call a "print to PDF"
HOWEVER
On Windows MiKTeX it tells me It can't and do I want to open the PDF in a viewer !!
I can then print or save the pdf there at will
TeXworks supplied with MiKTeX has several options to save as, and it is not apparent to a user that when you "save as" PDF you are most likely saving the TeX file with an incorrect PDF extension !
it is easy to see the editor now is editing filename.pdf !!!
One easy way to get the PDF into an external PDF viewer is to ask for a print !
That is the natural way in windows to call a "print to PDF"
HOWEVER
On Windows MiKTeX it tells me It can't and do I want to open the PDF in a viewer !!
I can then print or save the pdf there at will
answered Mar 20 at 14:13
KJOKJO
3,6701222
3,6701222
File > Print Pdf in the pdf window of TeXworks worked, thanks.
– J P
Mar 20 at 14:15
When the file is typeset the pdf is created---there is no need to Save As…. When you ``convert'' (typeset) file.tex the process creates file.pdf.
– Herb Schulz
Mar 20 at 17:44
@HerbSchulz I know but often running a file in a build directory sometimes one wants to save a copy elsewhere so I find in that editor I very frequently use the print trick to open in SumatraPDF where I can then save as to another folder for me is quicker than open Save as, Change the setting from Tex to Pdf, Select the file with right copy, Navigate to the paste location, Then have to paste the file and Re-open it with viewer to check it is OK !
– KJO
Mar 20 at 17:48
add a comment |
File > Print Pdf in the pdf window of TeXworks worked, thanks.
– J P
Mar 20 at 14:15
When the file is typeset the pdf is created---there is no need to Save As…. When you ``convert'' (typeset) file.tex the process creates file.pdf.
– Herb Schulz
Mar 20 at 17:44
@HerbSchulz I know but often running a file in a build directory sometimes one wants to save a copy elsewhere so I find in that editor I very frequently use the print trick to open in SumatraPDF where I can then save as to another folder for me is quicker than open Save as, Change the setting from Tex to Pdf, Select the file with right copy, Navigate to the paste location, Then have to paste the file and Re-open it with viewer to check it is OK !
– KJO
Mar 20 at 17:48
File > Print Pdf in the pdf window of TeXworks worked, thanks.
– J P
Mar 20 at 14:15
File > Print Pdf in the pdf window of TeXworks worked, thanks.
– J P
Mar 20 at 14:15
When the file is typeset the pdf is created---there is no need to Save As…. When you ``convert'' (typeset) file.tex the process creates file.pdf.
– Herb Schulz
Mar 20 at 17:44
When the file is typeset the pdf is created---there is no need to Save As…. When you ``convert'' (typeset) file.tex the process creates file.pdf.
– Herb Schulz
Mar 20 at 17:44
@HerbSchulz I know but often running a file in a build directory sometimes one wants to save a copy elsewhere so I find in that editor I very frequently use the print trick to open in SumatraPDF where I can then save as to another folder for me is quicker than open Save as, Change the setting from Tex to Pdf, Select the file with right copy, Navigate to the paste location, Then have to paste the file and Re-open it with viewer to check it is OK !
– KJO
Mar 20 at 17:48
@HerbSchulz I know but often running a file in a build directory sometimes one wants to save a copy elsewhere so I find in that editor I very frequently use the print trick to open in SumatraPDF where I can then save as to another folder for me is quicker than open Save as, Change the setting from Tex to Pdf, Select the file with right copy, Navigate to the paste location, Then have to paste the file and Re-open it with viewer to check it is OK !
– KJO
Mar 20 at 17:48
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480489%2ffailed-to-load-pdf-texworks%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown