Extract All Marked-up Pages
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
xz1bbj
- User
- Posts: 7
- Joined: Tue Jan 25, 2011 6:04 pm
Extract All Marked-up Pages
I often need to mark-up many pages of a very large file. I need a means of quickly extracting only the marked-up pages and then saving them as a new file.
-
Paul - PDF-XChange
- Site Admin
- Posts: 7445
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Extract All Marked-up Pages
HI xz1bbj,
I have made a formal feature request for this: RT#795: Feature Request: extract pages that have mark up.
Please understand the feature list for V3 initial release has been capped. Should the dev team determine that this feature should be added it would be in some build after this.
hth
I have made a formal feature request for this: RT#795: Feature Request: extract pages that have mark up.
Please understand the feature list for V3 initial release has been capped. Should the dev team determine that this feature should be added it would be in some build after this.
hth
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
Corwin - Tracker Sup
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Extract All Marked-up Pages
Hi xz1bbj,
For now I may suggest you to run simple java script:
This script will remove all pages from document, that do not have annotations. So you may mark needed pages by any comment tool, then run this script and save document to different file (by using "File->Save As" menu).
HTH.
For now I may suggest you to run simple java script:
Code: Select all
function RemovePagesWithoutAnnots()
{
var numpages = this.numPages;
var nPageIndex = 0;
while(nPageIndex < numpages)
{
var annots = this.getAnnots(nPageIndex);
if (annots == null)
{
var nStartPage = nPageIndex;
nPageIndex++;
while(nPageIndex < numpages)
{
annots = this.getAnnots(nPageIndex);
if (annots != null)
break;
nPageIndex++;
}
var nCnt = nPageIndex - nStartPage;
if (nCnt == numpages)
{
app.alert("No annots in document");
return;
}
this.deletePages(nStartPage, nPageIndex-1);
numpages = numpages - nCnt;
nPageIndex = nPageIndex - nCnt;
}
nPageIndex++;
}
}
RemovePagesWithoutAnnots();HTH.
-
Paul - PDF-XChange
- Site Admin
- Posts: 7445
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Extract All Marked-up Pages
Hi xz1bbj,
additional to Corwin's suggestion, I must report that the feature request has been evaluated and is not likely to be implemented.
Sorry
additional to Corwin's suggestion, I must report that the feature request has been evaluated and is not likely to be implemented.
Sorry
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
xz1bbj
- User
- Posts: 7
- Joined: Tue Jan 25, 2011 6:04 pm
Re: Extract All Marked-up Pages
Corwin,
Thanks for the script file. It works fine EXCEPT when PDF-XChange Viewer is opened from within Internet Explorer, which is the way I normally use it. From within Internet Explorer, running the script seems to crash and close PDF-XChange Viewer. Any suggestions?
Thanks for the script file. It works fine EXCEPT when PDF-XChange Viewer is opened from within Internet Explorer, which is the way I normally use it. From within Internet Explorer, running the script seems to crash and close PDF-XChange Viewer. Any suggestions?
-
Corwin - Tracker Sup
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Extract All Marked-up Pages
As I have check it, all works fine even if Viewer is opened in IE. Maybe you can give us a link to document where you get this crash?
-
xz1bbj
- User
- Posts: 7
- Joined: Tue Jan 25, 2011 6:04 pm
Re: Extract All Marked-up Pages
Corwin,
Today the script is working correctly, even from within Internet Explorer. I'm not doing anythng differently today than I did yesterday, but now it's working most of the time. It did crash once out of 5 or 6 tests. The fact that it crashes sometimes means that I'll need to be very careful about saving before I run the script, or else I'll risk losing all my markups. Any idea why it sometimes crashes?
Thanks.
Today the script is working correctly, even from within Internet Explorer. I'm not doing anythng differently today than I did yesterday, but now it's working most of the time. It did crash once out of 5 or 6 tests. The fact that it crashes sometimes means that I'll need to be very careful about saving before I run the script, or else I'll risk losing all my markups. Any idea why it sometimes crashes?
Thanks.
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Extract All Marked-up Pages
Hello xz1bbj,
When it is not reproducible we can only guess why it is crashing, but could be due to an AntiVIrus software, or some other plug in in IE kicking in.
I could not see this stated anywhere in the topic so please check that you are using the latest build of our Viewer (2.5.191) as these crashes you have experienced might be due to a bug that is already fixed.
Best,
Stefan
When it is not reproducible we can only guess why it is crashing, but could be due to an AntiVIrus software, or some other plug in in IE kicking in.
I could not see this stated anywhere in the topic so please check that you are using the latest build of our Viewer (2.5.191) as these crashes you have experienced might be due to a bug that is already fixed.
Best,
Stefan
-
Corwin - Tracker Sup
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Extract All Marked-up Pages
I cannot get any crash with latest version of Viewer. However if you can help us to reproduce this problem it will be fixed.
-
xz1bbj
- User
- Posts: 7
- Joined: Tue Jan 25, 2011 6:04 pm
Re: Extract All Marked-up Pages
I have version 2.0.44 of Viewer. I'll try to have my IT group get me your latest version, as was suggested. I let you know if I get any crashes after updating.
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Extract All Marked-up Pages
Thanks xz1bbj,
2.0.44 is rather outdated, and most probably the crash would be fixed after the latest build is installed.
We will be awaiting your response.
Best,
Stefan
2.0.44 is rather outdated, and most probably the crash would be fixed after the latest build is installed.
We will be awaiting your response.
Best,
Stefan
-
xz1bbj
- User
- Posts: 7
- Joined: Tue Jan 25, 2011 6:04 pm
Re: Extract All Marked-up Pages
With the help of my IT person, we just tried to update to the latest verion of viewer. We got error message -2146697211. Any idea what this means?
-
John - Tracker Supp
- Site Admin
- Posts: 5225
- Joined: Tue Jun 29, 2004 10:34 am
Re: Extract All Marked-up Pages
Hi,
could it be the viewer was already open and therefore could not be updated ?
the error originates from your Operating System (Windows) and means there has been an 'Access Violation'
I would suggest a full uninstall/restart - install using the latest release from this page :
https://www.pdf-xchange.com/downloads
could it be the viewer was already open and therefore could not be updated ?
the error originates from your Operating System (Windows) and means there has been an 'Access Violation'
I would suggest a full uninstall/restart - install using the latest release from this page :
https://www.pdf-xchange.com/downloads
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Best regards
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com
-
ted de castro
- User
- Posts: 5
- Joined: Thu Jun 09, 2011 9:08 pm
Re: Extract All Marked-up Pages
Post edited.
Sorry Ted - we do not allow links or reference to 3rd party products - additionally the required functionality can be achieved with our products and if there are issues we need to know about them so we can resolve - rather than see users migrate to another product as a workaround - we would rather fix whenever possible.
Thanks for your understanding.
Sorry Ted - we do not allow links or reference to 3rd party products - additionally the required functionality can be achieved with our products and if there are issues we need to know about them so we can resolve - rather than see users migrate to another product as a workaround - we would rather fix whenever possible.
Thanks for your understanding.