pagdot/DnD-Latex-Charactersheet

Can't build the character sheet

Closed this issue · 8 comments

Hi!

I tried to build the character sheet using your build.sh script, but I get the following error:

pdfTeX warning: pdflatex (file ./base.pdf): PDF inclusion: found PDF version <1
.7>, but at most version <1.5> allowed


pdfTeX warning: pdflatex (file ./base.pdf): PDF inclusion: found PDF version <1
.7>, but at most version <1.5> allowed


pdfTeX warning: pdflatex (file ./base.pdf): PDF inclusion: found PDF version <1
.7>, but at most version <1.5> allowed


pdfTeX warning: pdflatex (file ./base.pdf): PDF inclusion: found PDF version <1
.7>, but at most version <1.5> allowed
! Undefined control sequence.
\AM@pagecommand ->\Ifthispageodd
                                 { \begin {tikzpicture}[remember picture, ov...
l.179 	}

?
! Extra }, or forgotten \endgroup.
\AM@pagecommand ...x=1cm,y=1cm,shift={(1.31,0)}] }
                                                   { \begin {tikzpicture}[re...
l.179 	}

?
! Extra }, or forgotten \endgroup.
\AM@pagecommand ...=1cm,y=1cm,shift={(-1.31,0)}] }
                                                   \ifdefined \@DndBase@Char...
l.179 	}

?
! TeX capacity exceeded, sorry [grouping levels=255].
\pgf@setlengthorig #1#2->\begingroup
                                     \pgfutil@selectfont \pgf@setlengthorig ...
l.179 	}

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on "Character Sheet.log".

This is my log instead:

Character Sheet.log

Thanks in advance for your help! :)

It seems like the pdf version number from the base.pdf doesn't match your pdf. Can you try adding the line \pdfminorversion=7 before \begin{document} in you Character sheet?

@pagdot

Thanks for your help! I tried and now I get this error:

! pdfTeX error (setup): \pdfminorversion cannot be changed after data is writte
n to the PDF file.
<argument> \pdfximage
                      \ifnum 0\ifx \Gin@decode \@empty \else 1\fi \ifGin@int...
l.181 	}

!  ==> Fatal error occurred, no output PDF file produced!

Ok, it seems like you need to specify it before D&D packages:

\documentclass[10pt,a4paper]{scrbook}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\pdfminorversion=7 

\usepackage[base=base.pdf]{dndcharactersheet}
\usepackage[base=details.pdf]{dnddetailssheet}
\usepackage[base=spells.pdf]{dndspellsheet}

Thanks! The old problem is solved, but now I get another kind of error:

! Undefined control sequence.
\AM@pagecommand ->\Ifthispageodd
                                 { \begin {tikzpicture}[remember picture, ov...
l.182 	}

?
! Extra }, or forgotten \endgroup.
\AM@pagecommand ...x=1cm,y=1cm,shift={(1.31,0)}] }
                                                   { \begin {tikzpicture}[re...
l.182 	}

?
! Extra }, or forgotten \endgroup.
\AM@pagecommand ...=1cm,y=1cm,shift={(-1.31,0)}] }
                                                   \ifdefined \@DndBase@Char...
l.182 	}

?
! TeX capacity exceeded, sorry [grouping levels=255].
\pgf@setlengthorig #1#2->\begingroup
                                     \pgfutil@selectfont \pgf@setlengthorig ...
l.182 	}

!  ==> Fatal error occurred, no output PDF file produced!

I can't reproduce it on my end. Are you able to provide a zip containing all necessary files, so I can take a look into it?

Thanks, should be fixed now with the latest commits :)

It seems like debian ships an older texlive version which cause the issues with my code. Was simple to fix though :)

Now it works perfectly! Thanks a lot for your help! :)