Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Double pdf:pagenumber without linefeed before closing tag
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ofo  
View profile  
 More options Jul 8 2011, 2:22 pm
From: ofo <ole.fos...@gmail.com>
Date: Fri, 8 Jul 2011 11:22:14 -0700 (PDT)
Local: Fri, Jul 8 2011 2:22 pm
Subject: Double pdf:pagenumber without linefeed before closing tag
Hi,
Awesome tool! A little odd behavior of the <pdf:pagenumber /> tag
causing double pagenumbers:

xhtml2pdf.exe filename.html

filename.html:

<html>
<head>
<style>
@page { @frame footer { -pdf-frame-content: footerContent; bottom:
1cm; height: 1cm; } }
</style>
</head>
<body>
<div id="footerContent">Page <pdf:pagenumber /></div>
</body>
</html>

renders: "Page 11" whereas

<html>
<head>
<style>
@page {  @frame footer { -pdf-frame-content: footerContent; bottom:
1cm; height: 1cm; } }
</style>
</head>
<body>
<div id="footerContent">Page <pdf:pagenumber />
</div>
</body>
</html>

renders: "Page 1".

That is a newline is needed before the closing tag of the div (or p)
to avoid double line numbers.
May save someone else some time some time.

> xhtml2pdf.exe --version

XHTML2PDF/pisa 3.0.33 (Build 2010-06-16)

Same result with ho.pisa.CreatePDF (Windows XP, SP3).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philippe Raoult  
View profile  
 More options Jul 11 2011, 5:29 am
From: Philippe Raoult <philipp...@oult.eu>
Date: Mon, 11 Jul 2011 11:29:44 +0200
Local: Mon, Jul 11 2011 5:29 am
Subject: Re: [xhtml2pdf] Double pdf:pagenumber without linefeed before closing tag
Might be just a parser quirk. In default mode self-closing tags aren't
recognized properly so the parser would probably add another pdf tag
right after ? This is on top of my head, I had similar issues with the
python API not the command line. Check for a command-line xhtml
option/flag.

On 8 July 2011 20:22, ofo <ole.fos...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josh Stratton  
View profile  
 More options Jul 11 2011, 9:33 am
From: Josh Stratton <strattonbra...@gmail.com>
Date: Mon, 11 Jul 2011 06:33:04 -0700
Local: Mon, Jul 11 2011 9:33 am
Subject: Re: [xhtml2pdf] Double pdf:pagenumber without linefeed before closing tag
I believe I had a similar issue, where I had to the page number to
it's own line.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »