New page insertion failure #1732
-
With the below snippet the attempt is to insert two pages - one after another.
But, the statement
Different variations attempted for the
All of them return the same error. Had re-read the documentation no clarity yet though. @JorjMcKie Any ideas on how to resolve this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Page number is a positional parameter with a default "after last page". Otherwise, I don't know yet why the previous page object is disabled even when the new page is created with a different name. Circumvent this issue by
Methods 1. and 2. are highly inefficient and a waste of resources. A variant of method 2 would be to just store the information you may need later, or maybe a |
Beta Was this translation helpful? Give feedback.
-
Yes, this is perplexing. Most likely a bug in the library.
Like done in the code sample pasted, Isn't this similar to storing the page's reference to a variable?
Wondering how this will work, because, this will most likely access page's reference in the doc object which would same reference as the variable. Assigment statement is straight-forward, however doesn't work as intended. Is it due to not knowing the underlying guidelines and principles using which the library is built? |
Beta Was this translation helpful? Give feedback.
-
No! |
Beta Was this translation helpful? Give feedback.
-
Found the bug. The line marked yellow is wrong and should be deleted. It deletes (disables) any previously loaded page: |
Beta Was this translation helpful? Give feedback.
Found the bug. The line marked yellow is wrong and should be deleted. It deletes (disables) any previously loaded page: