Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

JoschkaRick
Community profile JoschkaRick Level 2
Job title here
Location here
8 BADGES
Level 2

Level 2

Learn more
Joined the community 07-06-2018 1:21:46 AM
Offline
Top badges earned by JoschkaRick
Customize the badges you want to showcase on your profile
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Ok, I was able to combine your solutions to a working prototype.I am using a dummy-subform in "repeating_subform", which has the target "last_page". This subform is hidden by default.With your script from above I now determine which subform-instances are on the last page, and set the dummy-subform to "visible" for all corresponding instances. Then I use relayout() to apply the changes.This way I have the last page on a different master page and can now use a different paper tray.Thanks again for...

Views

2.1K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Hi Brue,I have bin looking for the blog post you are talking about, but I can't find it at all.Where can I find this technique?Best regardsJoschka

Views

1.8K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Hi Brue,ok, I understand now what you meant.Well, if deletePages() would work, the script could be as follows:this.deletePages(xfa.layout.pageCount(), 1);xfa.layout.relayout();(Pseudocode)Having each page duplicated sounds costy, but I guess it's a costy requirement anyways.Do you mean duplicating the whole XDP file, or the Form WITHIN the file?

Views

1.8K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Hi Brue,thanks again for the extensive answer and explanation.Unfortunately the script does only help when deleting the last page.We have masterpages FIRST, NEXT and LAST.If we remove every element except the ones on the last page, the content would be printed on masterpage FIRST instead of LAST.Is there maybe a way to switch masterpages at runtime?It would be way easier if the deletePages(n-1, 1) command would still be available .Is there a similar command available? Can we maybe use the pageSe...

Views

1.8K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
It's called Adobe Document Services (ADS), a cross-product of Adobe and SAP. I don't know how the script can delete the last page or all but, and that's exactly what I'm trying to find out. Any ideas on that?

Views

1.8K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Hi Brue,what I'm trying to do is to split the document into last page and everything but last page.Since I can't use external tools for this (like PDF Toolkit / PDF Toolbox), I have to find a script to do just that.I hope it's clearer now.A button will not work for us, since the form is not interactive.So I really just need a command to delete the last page from the resulting PDF, or every page before that.

Views

1.8K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Thanks again for your input.Same problem. I've tried to hide all items from the second-last page (... == pageCount - 1).With 4 pages of subforms, pages 3 and 4 are now empty, but are still printed.Is the event ready:layout maybe too late?The page count is only available at this event though, right? At least the script doesn't work in ready:form.

Views

1.8K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Hm... that sounds like the right direction.If I do that now, the last page does not contain any items, but it's still printed.Any idea on how to avoid the blank page?Can I access the page and set the presence to hidden? If so, how?

Views

1.8K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
We can create a second master page, but we would need to tell the content when to switch to the second master page.Here's the structure:Repeeating_subform will eventually extend to the last page.How do I tell repeating_subform to use my second masterpage "last_page"?

Views

1.8K

Likes

0

Replies

0
Re: Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Hi Bruce,thanks for your explanation.To use that option, our last page would need a different page size, correct?How can I tell the last page to be on a different master page, or a different page size?Best regardsJoschka

Views

1.8K

Likes

0

Replies

0
Delete last page at runtime
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
We've got an invoice adobe form in SAP where the last page should always be printed on a different kind of paper.That requires us to use a different intput and output tray for the last page.Out current workaround idea:Print the document twice: First time without the last page, second time only the last page. This way we have 2 separate print jobs and can control the intput/output tray as we may. But we can't manage to always delete the last page.The pages are filled using repeating subforms. We ...

Views

3.9K

Like

1

Replies

19
Re: Get Pagenumber via FormCalc ( xfa.layout.page($) not working)
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Thanks! It's working for Fields on the master page, which is enough :-).

Views

789

Likes

0

Replies

0
Get Pagenumber via FormCalc ( xfa.layout.page($) not working)
Avatar
Give Back 10
Level 2
JoschkaRick
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
JoschkaRick
- Adobe LiveCycle
Hello everyone,I'm trying to print the current page number on my master page using FormCalc.The following command:$.rawValue = xfa.layout.page($)throws the error "Error - Different arguments in property or functional argument".I only see the exception in English, so it's translated freely.The layout documentation states that the call is correct:Adobe LiveCycle ES4 * page The form is a new, clean one, I'm using ES4.Any ideas why it's not working?

Views

1.7K

Like

1

Replies

3
Likes given to
Likes from