Graphics, Figures & TablesAppending pdf file in latex

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
elhamahm
Posts: 3
Joined: Mon Mar 14, 2016 6:36 pm

Appending pdf file in latex

Post by elhamahm »

Hello,
I need to insert some pdf documents to my latex file. For that I use the package
\usepackage{pdfpages}. But the problem is that after adding this command I have this type of error message as

Code: Select all

!LaTex Error: Missing \begin{document}
By the way, this is my simple latex source:

Code: Select all

\documentclass[12pt,letterpaper]{article} 
\usepackage{pdfpages}
\begin{document}
\includepdf{testpdf}
\end{document}
If there is anyone who can help me to solve this question. Thank you
Last edited by cgnieder on Fri Mar 18, 2016 7:35 pm, edited 3 times in total.

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Appending pdf file in latex

Post by Johannes_B »

Welcome,

this cannot be the whole message, you LaTeX editor is hiding stuff from you. Bad bad editor.
Please show us the log file of that run.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Appending pdf file in latex

Post by Stefan Kottwitz »

Hi elhamahm,

welcome to the forum!

You can post the .log file as attachment to the post here in the forum.

Stefan
LaTeX.org admin
elhamahm
Posts: 3
Joined: Mon Mar 14, 2016 6:36 pm

Appending pdf file in latex

Post by elhamahm »

Johannes_B wrote:Welcome,

this cannot be the whole message, you LaTeX editor is hiding stuff from you. Bad bad editor.
Please show us the log file of that run.
I have edited the error message
Post Reply