stfnk / Cewe2pdf

Converts CEWE FOTOWELT .mcf files to high quality pdf
MIT License
3 stars 0 forks source link

Page numbers appear when turned OFF #6

Open gizmo21 opened 3 years ago

gizmo21 commented 3 years ago

In a newly created book i got page numbers in black even if they are turned off. Workaround is turning them ON and selecting transparent as txt-color.

Pagenumbering OFF position=0 -> IN the PDF in black:

    <pagenumbering bgcolor="#00000000" fontbold="0" fontfamily="Calibri" fontitalics="0" fontsize="12" format="0" margin="111" position="0" textcolor="#ff000000" textstring="%" verticalMargin="50">
        <outline width="1"/>
    </pagenumbering>
[Info]    mcf content:
<fotobook>
        art_id=9733
        productname=ALB41
        <project>
                createdWithHPSVersion=7.1.2
        <articleConfig>
                normalpages=114
                totalpages=119
[Warning] Unhandled Node in <fotobook> 'project'.
[Warning] Unhandled Node in <fotobook> 'savingVersion'.
[Warning] Unhandled Node in <fotobook> 'creationHistory'.
[Warning] Unhandled Node in <fotobook> 'articleConfig'.
[Warning] Unhandled Node in <fotobook> 'addOns'.
[Warning] Unhandled Node in <fotobook> 'extra'.
[Warning] Unhandled Node in <fotobook> 'userfeedback'.
[Warning] Unhandled Node in <fotobook> 'fotoRelationships'.
[Info]    Loading fonts from C:\Windows\Fonts
[Info]    Loading fonts from C:\Program Files\d*\d*-Fotowelt\Resources\photofun\fonts
[Info]    Searching for fonts directory at C:\ProgramData\hps
[Info]    Loading fonts from: 'C:\ProgramData\hps\1320\photofun\fonts'.
[Info]    Loading fonts from: 'C:\ProgramData\hps\1320\addons\fontspackage\fonts'.
[Info]    Found 2750 fonts.
Converting 4 pages.

Weirdly enough that 'issue' is NOT there on a very old 6.x version created book opened/saved on 7.1.2. I can't get page numbers on that one at all, even if turned on and visible in app and saved.

Pagenumbering OFF position=0 -> NOT in PDF:

    <pagenumbering bgcolor="#00000000" fontbold="0" fontfamily="Calibri" fontitalics="0" fontsize="24" format="0" margin="111" position="0" textcolor="#ff000000" textstring="%" verticalMargin="50">
        <outline width="1"/>
    </pagenumbering>

Pagenumbering ON position=4 -> NOT in PDF:

    <pagenumbering bgcolor="#00000000" fontbold="0" fontfamily="Calibri" fontitalics="0" fontsize="24" format="0" margin="111" position="4" textcolor="#ff000000" textstring="%" verticalMargin="50">
        <outline width="1"/>
    </pagenumbering>
gizmo21 commented 3 years ago

when I put fontsize to 24 in first mentioned file, it also does not apear in PDF:

    <pagenumbering bgcolor="#00000000" fontbold="0" fontfamily="Calibri" fontitalics="0" fontsize="24" format="0" margin="111" position="0" textcolor="#ff000000" textstring="%" verticalMargin="50">
        <outline width="1"/>
    </pagenumbering>
stfnk commented 3 years ago

Interesting :D Thanks for the detailed report! This definitely needs a closer look. I think pagenumbers were never properly implemented, I probably never event tried turning them off...

Not sure when i'll get to improve this, quite busy with work atm.