#1 2012-05-10 13:50:51

fkaynakli
Member
Registered: 2011-06-14
Posts: 12

Two Additional TPdfPageLayout

TPdfPageLayout implemented is like this:

TPdfPageLayout = (plSinglePage, plOneColumn, plTwoColumnLeft, plTwoColumnRight);

But I realize that Acrobat has two additional page layout which I need:

TwoPageLeft and TwoPageRight

so I changed two lines of code like this:

TPdfPageLayout = (
    plSinglePage, plOneColumn, plTwoColumnLeft, plTwoColumnRight, plTwoPageLeft, 
    plTwoPageRight);
...
PDF_PAGE_LAYOUT_NAMES: array[TPdfPageLayout] of PDFString = (
    'SinglePage', 'OneColumn', 'TwoColumnLeft', 'TwoColumnRight', 'TwoPageLeft',
    'TwoPageRight');

I hope that it helps to someone.
Best Regards...

Offline

#2 2012-05-10 14:13:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,258
Website

Re: Two Additional TPdfPageLayout

In which revision did it appear?

Perhaps this would need to change the pdf format header.

Offline

#3 2012-05-10 15:21:54

fkaynakli
Member
Registered: 2011-06-14
Posts: 12

Re: Two Additional TPdfPageLayout

ab wrote:

In which revision did it appear?

I changed my local copy. I did not upload any source code change. May be you can apply change to next revision.

ab wrote:

Perhaps this would need to change the pdf format header.

As I see, these two little line of change is enough.

Offline

#4 2012-05-11 05:10:13

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,258
Website

Re: Two Additional TPdfPageLayout

I was talking about the PDF format revision.
wink

The Adobe PDF format has an internal revision version, in its header, which states the expected content.

I guess that those new parameters are not compatible with the current PDF format used.

It would work without touching it, but may fail validation of the PDF content, by third-party tool.

Offline

#5 2012-05-11 07:10:43

fkaynakli
Member
Registered: 2011-06-14
Posts: 12

Re: Two Additional TPdfPageLayout

Sorry for my ignorance big_smile.
I tried with my pdf outputs and it worked. I don't know anything about pdf headers.

Offline

#6 2012-05-11 08:04:55

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,546
Website

Re: Two Additional TPdfPageLayout

It's appear in PDF 1.5

I use this documentation when working with pdf:  www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf
Quote:

PageLayout
(Optional) A name object specifying the page layout shall be used when the document is opened:
SinglePageDisplay one page at a time
OneColumnDisplay the pages in one column
TwoColumnLeftDisplay the pages in two columns, with odd-numbered pages on the left
TwoColumnRightDisplay the pages in two columns, with odd-numbered pages on the right
TwoPageLeft(PDF 1.5) Display the pages two at a time, with odd-numbered pages on the left
TwoPageRight(PDF 1.5) Display the pages two at a time, with odd-numbered pages on the right
Default value: SinglePage.

Last edited by mpv (2012-05-11 08:09:29)

Offline

Board footer

Powered by FluxBB