Работа с виртуальным принтером PDF-XChange
Добрый день, коллеги!
Послупила задача паролить pdf. Сразу говорю - Bullzip админы не хотят ставить. у нас есть PDF-XChange.
Начал копать в эту сторону. Нашёл мануал.
достучался до принтера.
а вот до свойств принтера достучаться не могу.
Синтаксис VB
Property Option(pOptionName As String)
A detailed list of all available properties with detailed descriptions is listed in Properties. All
properties are identified by a string for that pOptionName. The name of the property will also usually
contain some parts separated by the dot (.) character. Values of these properties can be strings,
integers, boolean or binary values (an array of bytes).
3.1.2.1 Property Table Definition
Each property section has a table detailing the possible property values.
The three columns of the tables provided are always:
Name. The name of the property. This is what you assign the value to. For example: "Paper.
LayoutType".
Possible Values. These are the allowed values for the property specified in Name. Description. Describes the use or function of the property.
The possible values are described as numbers and corresponding strings, and either may optionally
be used to set the value of the property.
For example: 0 (Normal) means than this property can be set as the integer value 0 or as the name
"Normal".
Therefore, both of these assignments are equivalent:
pPrinter.Option["Paper.LayoutType"] = 0
pPrinter.Option["Paper.LayoutType"] = "Normal"
пробовал
- выдает неправильное число параметров
может есть у кого опыт или идеи?
Послупила задача паролить pdf. Сразу говорю - Bullzip админы не хотят ставить. у нас есть PDF-XChange.
Начал копать в эту сторону. Нашёл мануал.
достучался до принтера.
PDFPFactory=Новый ComObject("PXCComLib5FineReader.CPXCControlEx.1");
pPrinter = PDFPFactory.Printer("", "PDF-XChange 2012 Sample", "<reg>","<dev>");
а вот до свойств принтера достучаться не могу.
Синтаксис VB
Property Option(pOptionName As String)
A detailed list of all available properties with detailed descriptions is listed in Properties. All
properties are identified by a string for that pOptionName. The name of the property will also usually
contain some parts separated by the dot (.) character. Values of these properties can be strings,
integers, boolean or binary values (an array of bytes).
3.1.2.1 Property Table Definition
Each property section has a table detailing the possible property values.
The three columns of the tables provided are always:
Name. The name of the property. This is what you assign the value to. For example: "Paper.
LayoutType".
Possible Values. These are the allowed values for the property specified in Name. Description. Describes the use or function of the property.
The possible values are described as numbers and corresponding strings, and either may optionally
be used to set the value of the property.
For example: 0 (Normal) means than this property can be set as the integer value 0 or as the name
"Normal".
Therefore, both of these assignments are equivalent:
pPrinter.Option["Paper.LayoutType"] = 0
pPrinter.Option["Paper.LayoutType"] = "Normal"
пробовал
pPrinter.Option["Paper.LayoutType"] = 0;
может есть у кого опыт или идеи?
Ответы
Подписаться на ответы
Инфостарт бот
Сортировка:
Древо развёрнутое
Свернуть все
Для получения уведомлений об ответах подключите телеграм бот:
Инфостарт бот