Closed Jheronymus closed 3 years ago
Most likely a css thing - the footer has not changed. Are you using the same parameters for both converters?
Yes, I specifically downloaded v2.9.0 to retest and verify the results. I'll test tomorrow if the stylesheet is now global to the document, which I thought it wasn't (hence the online styling). If it is, that's actually an improvement.
Not sure, let me know what you find out
Get Outlook for iOShttps://aka.ms/o0ukef
From: Jeroen @.> Sent: Thursday, June 3, 2021 11:29:26 PM To: MaxMelcher/AzureDevOps.WikiPDFExport @.> Cc: Max Melcher @.>; Comment @.> Subject: Re: [MaxMelcher/AzureDevOps.WikiPDFExport] Footer rendered differently in v3 (#66)
Yes, I specifically downloaded v2.9.0 to retest and verify the results. I'll test tomorrow if the stylesheet is now global to the document, which I thought it wasn't (hence the online styling). If it is, that's actually an improvement.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/66#issuecomment-854193006, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAH3LNZ5LGT5HUIVQIWP5L3TQ7X3NANCNFSM46A5ERTQ.
Just tested this by adding a class to my header/footer and put the styling (font color) for this class in the css file that gets passed in. The result is as I expected:
This concludes that the passed in stylesheet is now global to the whole document. I would consider this a feature, not a bug. But maybe good to mention this and/or update the example header/footer files.
Thats nice - let's update the docs and css then
Get Outlook for iOShttps://aka.ms/o0ukef
From: Jeroen @.> Sent: Friday, June 4, 2021 11:52:47 AM To: MaxMelcher/AzureDevOps.WikiPDFExport @.> Cc: Max Melcher @.>; Comment @.> Subject: Re: [MaxMelcher/AzureDevOps.WikiPDFExport] Footer rendered differently in v3 (#66)
Just tested this by adding a class to my header/footer and put the styling (font color) for this class in the css file that gets passed in. The result is as I expected:
This concludes that the passed in stylesheet is now global to the whole document. I would consider this a feature, not a bug. But maybe good to mention this and/or update the example header/footer files.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/66#issuecomment-854543184, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAH3LN7E4IW5VAIKEFBCMZTTRCO67ANCNFSM46A5ERTQ.
I fixed my own document now. The only thing I can't seem to figure out is why all table cells have 0 padding. (this is throughout the document. The v2.9.0 html output had the stylesheet in the header. The v3.0.0 just has bare HTML. If you add the style sheet, the browser shows the tables with some padding, but this is not reflected in the PDF.
I tried to make the example a little bit better and document the parameters that were missing. The header and footer html is really tricky.
header:
footer:
The inherit the css, otherwise the icons would not work there.
can we close this?
yeah, I think so. I still have some issues with the layouting, but will try with the newer version and extended logging.
Hi, I just noticed that the footer is rendered differently when moving from version 2.9.0 to 3.0.0
Version V2.9.0![image](https://user-images.githubusercontent.com/2046231/120661199-58d6ca80-c488-11eb-89d0-33e998e46b2e.png)
Version V3.0.0![image](https://user-images.githubusercontent.com/2046231/120661271-668c5000-c488-11eb-9253-f01827aa3ac3.png)
Those screenshots were from Acrobat, in the Edge browser the footer looks even worse:![image](https://user-images.githubusercontent.com/2046231/120661651-c256d900-c488-11eb-9928-763d9fb73974.png)
I think the inline styling is ignored. Or the stylesheet is now applied later and also to the header and footer I could not find any logging on the header/footer generation using the -v and --debug options.
I'm using the (undocumented) --header-url and --footer-url to link to the files
full command
& ".\azuredevops-export-wiki.exe" -v -o export.pdf --debug --css .\devopswikistyle.css --header-url .\page-header.html --footer-url .\page-footer.html -b -m
Code: