xsl fo 1.1 pdf duplex printing

2014-06-18 Thread Vijaya Raghavan.R
Hi,

Need some clarifications in xsl fo 1.1 version.

- Is it possible set duplex (back to back ) printing setup in xsl
design?
- Need to show notes in pdf, but need to hide it while printing the
pdf ( using xsl )
- how to include book marks for external pdf's


If anyone having ideas, please help.

Thanks in Advance





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/xsl-fo-1-1-pdf-duplex-printing-tp40800.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



how to find page numbers while merging more than one PDF

2014-06-18 Thread Vijaya Raghavan.R
Hi,

We are generating pdf's separately ,at the end we merge it to single pdf.

(ex: generating three pdf's with 4,8,3 pages respectively. at the end we
merge it to single pdf)

In this case how to find the total page numbers dynamically using
page-number-citation .


Please help. Thanks in advance



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/how-to-find-page-numbers-while-merging-more-than-one-PDF-tp40801.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: [PDF Renderer] Why FOP scales down 300 dpi images and not maintain the intrinsic image dimension?

2014-06-18 Thread Dridi Seifeddine
Thanks everyone,

 

OK. I understand better now. Just one last question Vincent: How do you know
the natural size of an image? Isn't it the size in pixels specified in the
image file?



Re: [PDF Renderer] Why FOP scales down 300 dpi images and not maintain the intrinsic image dimension?

2014-06-18 Thread Pascal Sancho
Hi,

When the dpi values (pixel width and hight) are explicitely specified
in the image, so it's easy to compute the actual size (IOW natural
size).

Many API or tools can read such values.

When those values are not available, FOP uses its own pixel size,
witch defaults to 1/72in.


2014-06-17 15:21 GMT+02:00 Dridi Seifeddine sdr...@iptech-group.com:
 Thanks everyone,



 OK. I understand better now. Just one last question Vincent: How do you know
 the “natural” size of an image? Isn’t it the size in pixels specified in the
 image file?



-- 
pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: xsl fo 1.1 pdf duplex printing

2014-06-18 Thread Pascal Sancho
Hi,

2014-06-17 17:23 GMT+02:00 Vijaya Raghavan.R vijayaraghava...@solartis.net:
 Need some clarifications in xsl fo 1.1 version.
 - Is it possible set duplex (back to back ) printing setup in xsl
 design?

There is nothing in XSL-FO 1.1 for that.
Such directives are for PDF reader.
IMHO that should be possible with appropriate metadata witch are
outside the XSL-FO namespace.
But such metadata need exrta development to be properly handled

 - Need to show notes in pdf, but need to hide it while printing the
 pdf ( using xsl )

Same as above.

 - how to include book marks for external pdf's

perhaps the internal-destination property [1] meets your need here.

 If anyone having ideas, please help.

[1] http://www.w3.org/TR/xsl/#internal-destination
-- 
pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: how to find page numbers while merging more than one PDF

2014-06-18 Thread Pascal Sancho
Hi,

Did you tried the external-document FOP extension [1]?

It's incomplete but could do the trick (not tried, yet).

Other alternative is to post process with third tool like iText [2].

[1] http://xmlgraphics.apache.org/fop/1.1/extensions.html#external-document
[2] http://sourceforge.net/projects/itext/

2014-06-17 17:29 GMT+02:00 Vijaya Raghavan.R vijayaraghava...@solartis.net:
 Hi,

 We are generating pdf's separately ,at the end we merge it to single pdf.

 (ex: generating three pdf's with 4,8,3 pages respectively. at the end we
 merge it to single pdf)

 In this case how to find the total page numbers dynamically using
 page-number-citation .


 Please help. Thanks in advance



 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/how-to-find-page-numbers-while-merging-more-than-one-PDF-tp40801.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-- 
pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: how to find page numbers while merging more than one PDF

2014-06-18 Thread Maruan Sahyoun
you could also use Apache PDFBox for post processing

http://pdfbox.apache.org

BR
Maruan Sahyoun

Am 18.06.2014 um 10:40 schrieb Pascal Sancho psancho@gmail.com:

 Hi,
 
 Did you tried the external-document FOP extension [1]?
 
 It's incomplete but could do the trick (not tried, yet).
 
 Other alternative is to post process with third tool like iText [2].
 
 [1] http://xmlgraphics.apache.org/fop/1.1/extensions.html#external-document
 [2] http://sourceforge.net/projects/itext/
 
 2014-06-17 17:29 GMT+02:00 Vijaya Raghavan.R vijayaraghava...@solartis.net:
 Hi,
 
 We are generating pdf's separately ,at the end we merge it to single pdf.
 
 (ex: generating three pdf's with 4,8,3 pages respectively. at the end we
 merge it to single pdf)
 
 In this case how to find the total page numbers dynamically using
 page-number-citation .
 
 
 Please help. Thanks in advance
 
 
 
 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/how-to-find-page-numbers-while-merging-more-than-one-PDF-tp40801.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 
 
 -- 
 pascal
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 



Formatting a RtfTable using RTFLib

2014-06-18 Thread sreejithyes
How to format a table (RtfTable) using RTFLib in java. Like setting padding,
aligning, border, font...I couldn't find any examples. Can some body give
some examples. 

Thanks in advance.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Formatting-a-RtfTable-using-RTFLib-tp40808.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Formatting a RtfTable using RTFLib

2014-06-18 Thread Robert Meyer
Hi,

The only examples we have are here as the project is not really maintained 
anymore:

http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/test/java/org/apache/fop/render/rtf/rtflib/testdocs/

but these only show some basic table examples. I'm guessing you're using this 
in conjunction with FOP as opposed to using it separately? From taking a quick 
look at the code there seems to be another method in RtfTableRow which is 
newTableCell(int cellWidth, RtfAttributes attrs). Looking around it appears as 
though you can specify features such as padding and borders by adding them to 
the attrs list. For example, in BorderAttributesConverter there are the 
following:

FOPRtfAttributes attrs = new FOPRtfAttributes();
attrs.set(IBorderAttributes.BORDER_COLOR, 
border.getBorderColor(side));
attrs.set(IBorderAttributes.BORDER_WIDTH, 
border.getBorderWidth(side, false) / 50);
attributes.set(ITableAttributes.CELL_BORDER_TOP, attrs);

and...

double paddingPt = border.getPadding(side, false, null) / 1000.0;
// Padding in twips
int padding = (int) Math.round(paddingPt * 
FoUnitsConverter.POINT_TO_TWIPS);

// Add padding to corresponding space (space-before or space-after)
// if side == START or END, do nothing
if (padding != 0) {
if (side == CommonBorderPaddingBackground.BEFORE) {
attributes.addIntegerValue(padding, RtfText.SPACE_BEFORE);
} else if (side == CommonBorderPaddingBackground.AFTER) {
attributes.addIntegerValue(padding, RtfText.SPACE_AFTER);
}
}

Hope this helps,

Regards,

Robert Meyer

 Date: Wed, 18 Jun 2014 03:30:02 -0700
 From: sreejith...@gmail.com
 To: fop-users@xmlgraphics.apache.org
 Subject: Formatting a RtfTable using RTFLib
 
 How to format a table (RtfTable) using RTFLib in java. Like setting padding,
 aligning, border, font...I couldn't find any examples. Can some body give
 some examples. 
 
 Thanks in advance.
 
 
 
 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/Formatting-a-RtfTable-using-RTFLib-tp40808.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
  

Re: how to find page numbers while merging more than one PDF

2014-06-18 Thread Rob Sargent
Or pre-process, getting last page number from the workflow (previous fo 
call), then start next doc one page higher.


On 06/18/2014 02:40 AM, Pascal Sancho wrote:

Hi,

Did you tried the external-document FOP extension [1]?

It's incomplete but could do the trick (not tried, yet).

Other alternative is to post process with third tool like iText [2].

[1] http://xmlgraphics.apache.org/fop/1.1/extensions.html#external-document
[2] http://sourceforge.net/projects/itext/

2014-06-17 17:29 GMT+02:00 Vijaya Raghavan.R vijayaraghava...@solartis.net:

Hi,

We are generating pdf's separately ,at the end we merge it to single pdf.

(ex: generating three pdf's with 4,8,3 pages respectively. at the end we
merge it to single pdf)

In this case how to find the total page numbers dynamically using
page-number-citation .


Please help. Thanks in advance



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/how-to-find-page-numbers-while-merging-more-than-one-PDF-tp40801.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org








Re: xsl fo 1.1 pdf duplex printing

2014-06-18 Thread Glenn Adams
I recently added experimental support for PDF 1.5 Optional Content Groups
(OCGs), aka Layers. It is rather rudimentary and not yet documented (except
in the PDF spec), but you can find a couple of examples at [1][2].

The main hook for this is the use of an fox:layer property on a block class
FO element type, which points at a previously declared pdf:layer element.

[1]
https://github.com/apache/fop/blob/trunk/test/layoutengine/standard-testcases/pdf-dictionary-extension_2.xml
[2]
https://github.com/apache/fop/blob/trunk/test/layoutengine/standard-testcases/pdf-dictionary-extension_3.xml


On Tue, Jun 17, 2014 at 9:23 AM, Vijaya Raghavan.R 
vijayaraghava...@solartis.net wrote:

 Hi,

 Need some clarifications in xsl fo 1.1 version.

 - Is it possible set duplex (back to back ) printing setup in xsl
 design?
 - Need to show notes in pdf, but need to hide it while printing the
 pdf ( using xsl )
 - how to include book marks for external pdf's


 If anyone having ideas, please help.

 Thanks in Advance





 --
 View this message in context:
 http://apache-fop.1065347.n5.nabble.com/xsl-fo-1-1-pdf-duplex-printing-tp40800.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




Misleading Error Message When Image Exceeds Viewport

2014-06-18 Thread bob swanson
I was working on a large (530+ pages) PDF creation
and was receiving an error that the viewport
was being exceeded. I finally figured out that
an image was too long, and bled beyond the
text of the page. That is my issue, and I
figured out at least one way to get around that.

The problem is that the error message
issued gave the wrong page number, and
I was looking for trouble in the wrong
part of the output PDF.

The following ZIP file has a script and
input files that reproduce the problem
with the error message. The script would
need modification to run on another machine,
as I have quite a configuration mess to
deal with. However, the fop script invocation
is pretty simple, and the input .fo file is
also pretty simple.

http://swansongrp.com/misc/the_test.zip

If necessary, I can open a problem report.

Thanks for all your help,


Bob Swanson
bobswans...@gmail.com