Работа с виртуальным принтером PDF-XChange

1. atroxa 5 17.08.18 10:07 Сейчас в теме
Добрый день, коллеги!
Послупила задача паролить 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;
- выдает неправильное число параметров

может есть у кого опыт или идеи?
Ответы
Подписаться на ответы Инфостарт бот Сортировка: Древо развёрнутое
Свернуть все
2. SanyMaga 70 17.08.18 18:36 Сейчас в теме
Попробуйте:
pPrinter.Option.SetValue("Paper.LayoutType", 0);
3. atroxa 5 28.08.18 11:46 Сейчас в теме
4. SanyMaga 70 28.08.18 12:05 Сейчас в теме
(3)
pPrinter.Paper.LayoutType = 0; //а так?
5. SanyMaga 70 28.08.18 12:06 Сейчас в теме
(3)
Изучите pPrinter в отладчике.
6. atroxa 5 28.08.18 12:25 Сейчас в теме
в отладчике мало информации.
Прикрепленные файлы:
7. atroxa 5 04.09.18 08:40 Сейчас в теме
Кто будет идти по этому пути. До свойств принтера можно достучаться только после приобретения доп. софта PDF-XChange Drivers API
745 usd лицензия на год.
Оставьте свое сообщение

Для получения уведомлений об ответах подключите телеграм бот:
Инфостарт бот