PVX_Control Extraction issue

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
matthew franco
User
Posts: 1
Joined: Tue Apr 12, 2016 6:30 pm

PVX_Control Extraction issue

Post by matthew franco »

Windows Explorer keep opening on in front of all other windows(cannot be closed or minimized) while utilizing PVX_Control to extract from a large pdf file into several small pdf files. Looks like the "Op.Do" comment line causes this problem. It appears to be opening the save location and continually updates and refreshes the view while. Below is my code and can anybody help me solve this problem?

Thanks a lot in advance,

pdfCtl.Inst.Settings("Docs.SingleWnd").v = False
pdfCtl.Inst.Settings("Docs.HideSingleTab").v = False
pdfCtl.Inst.FireAppPrefsChanged (PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_Documents)
strFileName = "C:\test.pdg"
pdfCtl.OpenDocFromPath strFileName, openParams
Set curDoc = pdfCtl.Doc
lngPageNumber = curDoc.CoreDoc.Pages.Count
nID = pdfCtl.Inst.Str2ID("op.document.extractPages", False)
Set Op = pdfCtl.Inst.CreateOp(nID)

For intCount0 = 1 To lngPageNumber Step 2
Set icabInput = Op.Params.Root("Input")
icabInput.v = curDoc
Set icabOptions = Op.Params.Root("Options")
icabOptions("PagesRange.Type").v = "Exact"
icabOptions("PagesRange.Text").v = Trim$(Trim$(CStr(intCount0)) & "-" & Trim$(CStr(intCount0 + 1)))
'icabOptions("PagesRange.Filter").v = "Even" 'Extract all even pages
icabOptions("CommentsAction").v = 0 'Do not copy comments
icabOptions("BookmarksAction").v = 1 'Copy all bookmarks
icabOptions("DeletePages").v = False 'Delete extracting pages
icabOptions("ExtractPagesAction").v = 3 'Extract each page to another file
strFileName = mstrSCRAGenDocFolder & "TEST_" & CSTR(intCount0) & ".pdf"
icabOptions("FileName").v = strFileName
Op.Do
Next intCount0
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PVX_Control Extraction issue

Post by Sasha - Tracker Dev Team »

Hello Matthew,

Please look carefully at the sample provided:

Code: Select all

options["OpenFolder"].v = true; //Open folder with new documents
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply