Bad PDF barcodes printing with PDFPrint Command Line software

Hello, I have another question on your latest version of "pdfprint_cmd".

The version we have (v2.0) has a problem printing some of our barcode graphics, not all. It rendered a large white gap right in the middle of the code. When we implemented the option "-shell", the problem went away as it popped up Adobe Acrobat. Annoying but the problem was gone. Yesterday we downloaded your current version (v7.0) and tested it. It prints the barcode without the gap and without "-shell" and no popup. This is perfect, but the barcode is still not readable. The barcode is a bit too compressed for our scanners to read. Is there a setting we can invoke to widen and improve scannability? We tried the "xres" and "yres" option but nothing improved.

Can you help us?
Customer
----------------------------------

http://www.verypdf.com/app/pdf-print-cmd/try-and-buy.html#buy
http://www.verypdf.com/pdfprint/pdfprint_cmd.zip

image
Thanks for your message, we suggest you may add -raster2 option to try again, for example,

pdfprint.exe -raster2 C:\test.pdf

We hope the -raster2 option will able to print the barcodes in your PDF file correctly, you may use this option to try again.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in PDF Print | Tagged , , , , | Leave a comment

How to use permission value in PDF Compressor Command Line? -perms or -dPermissions parameter.

While testing the Pdf compressor command line
I want to use the parameter -permit
Where can I find the values for (int ) ?
e.g.: only display and printing is allowed !

Regards
Customer
-------------------------------------------------------------------------------
image
VeryDOC PDF Compressor Command Line Home Page,

https://www.verydoc.com/pdfcompressor.html
-------------------------------------------------------------------------------
Hello alls,

I need help to deal with permissions and passwords using pdfcompressor.exe application.

I don't exactly understand the meaning of "flag bit". The PDF Reference Manual use a "bit position" number from 1 to 32 to define the flags, but it's not the flag bit, which is a multiple of 4. What's the exact relation between the "bit position" of the PDFReference and the "flag bit" used by pdfcompressor.exe?

Is it meaningfull to use permission without using encryption? If not, does the OwnerPassword is enougth to restrict user permission?

Must I always add the -dEncrytpion argument or is there a default encryption method hard coded in pdfcompressor.exe?

Assuming I want to user of the pdf to may do everything except extract font embeded in the document, which command line should I use?

Assuming I want the user to may only print and preview, which command line should I use?

Assuming I want the user to may print, preview, add and modify annotations, which command line should I use?

Thanks a lot for your answers and for all your work!

Customer
-------------------------------------------------------------------------------
Read the Adobe PDF Reference, Third Edition, table 3.15 for full details of the user access permission values.

   4 = Print document (possibly not at the highest quality level).
   8 = Modify contents of document, except as controlled by 32, 256 and 1024.
  16 = Copy text and graphics from document other than that controlled by 512
  32 = Add or modify text annotations, fill in interactive form  fields, and
       if 256 is set, create or modify interactive form fields
256 = Fill in existing interacive form fields, even if 32 is clear
512 = Extract text and graphics (in support of accessibility to disabled
       users or for other purposes).
1024 = Assemble the document (insert, rotate, or delete pages and create
       bookmarks or thumbnail images), even when 16 is clear
2048 = Add or modify text annotations

To enable all, use -dPermissions=-4, then subtract permissions to disable.
To allow only viewing, dPermissions=-3904.

VeryPDF
-------------------------------------------------------------------------------
I believe you are setting inappropriate security permission values for the
effect you wish to achieve.  Taking the values you have set we must use twos
complement arithmetic to arrive at a hex representation (the permission flag is
bit oriented, so hex is easier to examine).

-260 = FFFFFEFC
-516 = FFFFFDFC
-1028= FFFFFBFC

The top 20 bits are always set to 1 (as per the spec, so we can ignore those.
Bits 1 and 2 (we start numbering at 1) are always 0 as per the spec, so we can
also ignore those.

Hex   Binary
EFC = 1110 1111 1100
DFC = 1101 1111 1100
BFC = 1011 1111 1100

In all cases the following bits are set:

3  - Allow printing, check bit 12 for high resolution printing
4  - Allow modifications not controlled by bits 6, 9, 11
5  - Allow copy/extraction not controlled by bit 10
6  - Modify annotations, form filling. Bit 4 set so allow interactive form
7  - reserved must be 1
8  - reserved must be 1
12 - Allow high resolution printing

When permissions are set to -260 we clear bit 9:

9  - Fill in existing form fields *even if bit 6 is clear*

Since bit 6 is *not* clear this has no effect, form filling is already permitted.

When permissions are set to -516 we clear bit 10:

10 - Extract text and graphics.

However, note that this covers operations not controlled by bit 5. What exactly
this means is unspecified.

When permissions are set to -1028 we clear bit 11:

11 - Assemble the document, even if bit 4 is clear.

Since bit 4 is *not* clear this has no effect, document assembly is already
permitted.

There are two content copying controls displayed in Acrobat, when bit 5 is
clear, but bit 10 is 1 the content copying field is disabled, but the content
copying for accesibility field is enabled.

So lets try using what *I* think you want. Firstly we need to clear bits 4 and
6. These can be overridden by bits 9 and 11, but if they are already set to
true, then 9 and 11 will be ignored.

We need:
Existing form fields : 1111 1111 1111 1111 1111 1110 1100 0100
= FFFFFEC4 = -316

Content access : 1111 1111 1111 1111 1111 1101 1100 0100
= FFFFFDC4 = -572

Document assembly : 1111 1111 1111 1111 1111 1011 1100 0100
= FFFFFBC4 = -1084

Testing here this seems to control the fields correctly, as expected.

VeryPDF
-------------------------------------------------------------------------------
   4 = Print document (possibly not at the highest quality level).
   8 = Modify contents of document, except as controlled by 32, 256 and 1024.
  16 = Copy text and graphics from document other than that controlled by 512
  32 = Add or modify text annotations, fill in interactive form fields, and if 256 is set, create or modify interactive form fields
256 = Fill in existing interacive form fields, even if 32 is clear
512 = Extract text and graphics (in support of accessibility to disabled users or for other purposes).
1024 = Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even when 16 is clear
2048 = Add or modify text annotations

To enable all, use -dPermissions=-4.
To disable everything apart from viewing, combine the following -4 (base) -4 (print) -8 (modify) -16 (copy) -32 (annotate) -256 (interactive fields) -512 (copy for disability access) -1024 (assemble) -2048 (high quality print), so -dPermisions=-3904

To disable everything apart from viewing and printing: -3904-(-2048-4)=-1852

So you can run following command line to compress PDF file and enable only high quality print to PDF file,

pdfcompressor.exe -owner 123 -user 456 -perms -1852 -keylen 64 test.pdf out.pdf
-------------------------------------------------------------------------------

That means to disable filling of interactive form fields we add -4 (base) to -
256 = -260. To disable Print and Copy we add -4 (base) to -4 (print) and -16
(Copy) i.e -4 -4 -16 = - -24. We have tested for most of the combinations and
are working fine.

Also from your response I see that granularity is not permitted. For example,
I want to allow all other kinds of modifications to the document
except "Document Assembly". That means bit 11 must be cleared and bit 4 must
not be cleared. In your response you have mentioned:
-------------------------------------------------------------------------------
Since bit 4 is *not* clear this has no effect, document assembly is already
permitted.
-------------------------------------------------------------------------------

4  - Allow modifications not controlled by bits 6, 9, 11
11 - Assemble the document, even if bit 4 is clear.
From the above I interpreted that what can be controlled by bit 11 is
independent of what can be controlled by bit 4. That means even if bit 4 is
not clear I should be able to control Document Assembly by setting/clearing
bit 11.

Similarly for Content accessibility.
5 - Copy or otherwise extract text and graphics from the document by
operations other than that controlled by bit 10 10 - Extract text and graphics
(in support of accessibility to disabled users or for other purposes).

Is this understanding correct or not?

While we are doing more tests on this your clarifications on the above would help.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in PDF Compressor | Tagged , , | Leave a comment

How to merge more PDF print jobs into one print job?

I notice you have an option to -mergeprintjobs. How does this work actually?

Currently I'm doing the following...

pdfprint $ "" -printer MyPrinter1 file0.pdf
pdfprint $ "" -printer MyPrinter1 file1.pdf
pdfprint $ "" -printer MyPrinter1 file2.pdf
pdfprint $ "" -printer MyPrinter1 file3.pdf

This is 4 print jobs, right?

How do I use -mergeprintjobs to make 1 print job?

Customer
---------------------------------

image
Thanks for your message, yes, you can use -mergeprintjobs option to merge more print jobs into one single print job,

-mergeprintjobs : combine all print jobs into one print job

You can run following command lines to merge more print jobs into one print job,

pdfprint.exe -mergeprintjobs -copies 3 C:\input.pdf
pdfprint.exe -mergeprintjobs C:\*.pdf
pdfprint.exe -mergeprintjobs C:\test*.pdf
pdfprint.exe -mergeprintjobs C:\files.txt

VeryPDF

See Also:

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in PDF Print | Tagged , , | Leave a comment

when I called htmltools ActiveX Component from VB6 source code, I got Error 429, ActiveX component can't create object, how to solve this problem?

Hello

I have downloaded your trial version of htmltools.exe.

I wish to use it in a VB6 program that I use. In my program, I can only generate .rtf files, but my client now wants .pdf.

I tried to use your included VB example, but I get the following error when I try to to run it.

Error 429, ActiveX component can't create object. It happens when VB tries to run the line,

Set HTMLConverter = CreateObject("HtmlSchee.HtmlShell")

The program is being tested on a Windows 10 PC.

Thank you in advance.

All the best.
Customer
--------------------------------------------
I tested your VB sample program on an old Windows XP PC and it works fine. I think it’s a Windows 10 issue.

Customer
--------------------------------------------

image

HTML Converter Command Line (htmltools.exe)
http://www.verypdf.com/app/html-converter/try-and-buy.html#cmd

Thanks for your message, on the Windows 10 system, you need run the software with administrator privilege, you will able to get it work fine.

VeryPDF
--------------------------------------------
Hello

Thank you for your reply.

This not the answer. I am running VB6 with admin privilege.

Also the account I use has administrator privilege.

Customer
--------------------------------------------
Thanks for your message, we suggest you may use Shell() function to call htmltools.exe directly, for example,

+++++++++++++++++++
Module Module1
    Sub Main()
        Shell("D:\htmltools.exe D:\test.html D:\out.pdf", AppWinStyle.NormalFocus)
        Shell("D:\htmltools.exe -webkit D:\test.html D:\out.pdf", AppWinStyle.NormalFocus)
        Shell("D:\htmltools.exe -webkit2 D:\test.html D:\out.pdf", AppWinStyle.NormalFocus)
    End Sub
End Module
+++++++++++++++++++

You can use Shell() function to call htmltools.exe directly, this way will avoid the permission problem.

btw, htmltools.exe can't convert RTF file to PDF file very well, if you wish convert from RTF files to PDF files, we suggest you may download VeryDOC DOC to Any Converter Command Line from following web page to try,

https://www.verydoc.com/doc-to-any.html
http://www.verydoc.com/doc2any_cmd.zip

You can use "-nooffice" option to convert office files to PDF files without MS Office and OpenOffice installed, please look at following web page for more information,

https://www.verydoc.com/blog/verydoc-doc-to-any-converter-command-line-v3-5-release-notes-convert-word-to-pdf-without-office-and-openoffice.html

VeryPDF

VN:F [1.9.20_1166]
Rating: 2.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
Posted in HTML Converter (htmltools) | Tagged , , | Leave a comment

How to get correct page count from XPS and .SPL files?

Hello!

I'm working on a c# application that needs to analyse a .spl file in order to get some information about print jobs, to be more specific, I would like to have Page-Level colour detection in spool files since such information is not present on windows spooler API.

That when I came across verypdf API, I download the trial version of Spool File Page Counter SDK and made some tests with C-Sharp-AnyCPU project, basically I'm pausing the printing job when its spooled and analyzing the .spl file to get the correct page count.

The problem is that the API works well when the file is pooled as an EMF format, but when is RAW (most of them are) it gets all messy and wrong.

Is there any way to analyze .spl RAW files? can I convert the .spl to PCL or PS depending on the printer driver? 

Customer
-------------------------------------------

image

VeryPDF Spool File Page Counter SDK,

http://www.verypdf.com/app/hookprinter/spool-file-page-counter-sdk.html

Thanks for your message, yes, you are right, Spool File Page Counter SDK does support EMF-SPL, Postscript, PCL (include PCL-5C, PCL-5E, PCL-XL), PDF, EMF Spooling formats, it doesn't support RAW Spool format, because RAW format is just a binary format, it's not a specific file format like PDF, PS, PCL or EMF-SPL formats, so it's impossible to analyze the RAW format and read the information from RAW format, please understand this matter.

VeryPDF
-------------------------------------------
Yes, I do understand that.

I made some other tests, it looks like the SDK is able to get the right page counter when the files are spooled as PCL or PostScript by the printers driver, but not when is XPS.

In other words, when there are PostScript or PCL codes inside the .spl file it works properly, but if is a XPS inside de .spl it gets all information wrong.

I sending my the .SPL file that is not being counted properly.

I notice that your site says that XPS support is included within the SDK,

http://www.verypdf.com/app/hookprinter/spool-file-page-counter-sdk.html

Customer
-------------------------------------------
Hello,

Thanks for message, the latest version of Spool File Page Counter SDK does already support the XPS format, it can read the page count and page size information from XPS files, you may download the latest version of Spool File Page Counter SDK from our website to try again,

http://www.verypdf.com/app/hookprinter/try-and-buy.html#spl-page-counter-sdk
http://www.verypdf.com/dl2.php/ps-and-pcl-info-sdk.zip

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in Spool File Page Counter SDK | Tagged , , | Leave a comment
Page 1 of 1,42012345...102030...Last »