How to print a PDF file to high quality XPS file from Command Line?

Hello,

I use the PDFPrint Command Line Software to convert a PDF-Document to a
XPS-Document. After doing it, the fontstyle of my Document changed. It
looks like it is bold now and I actually don't know why. Maybe u can help
me, with my problem and give me a solution.
My Code looks like:

pdfprint.exe
-printtofile C:\K0S1.xps
-printer "Microsoft XPS Document Writer" C:\K0S1.pdf
-paper "pdf"
-enhancethinlines

This is the text in original PDF file,

image

This is the text in converted XPS file,

image

Thanks for your help.

Yours faithfully
Customer
------------------------------------------
Thanks for your message, please add -raster2 parameter to try again, for example,

pdfprint.exe
-raster2
-printtofile C:\K0S1.xps
-printer "Microsoft XPS Document Writer" C:\K0S1.pdf
-paper "pdf"
-enhancethinlines

Will you work better with -raster2 option?

VeryPDF
------------------------------------------
Hi,
it works, but if i zoom into my XPS document, it looks blurred. I also tried raster2aa and the other raster parameter, but it didn't look better.

I also tried with shell, but here a save window pops out to type a data name in. So its also a wrong way.

Maybe another idea?

Customer
------------------------------------------
You may increase the resolution to 300 DPI to try again, for example,

pdfprint.exe
-raster2 -xres 300 -yres 300
-printtofile C:\K0S1.xps
-printer "Microsoft XPS Document Writer" C:\K0S1.pdf
-paper "pdf"
-enhancethinlines

You will get a high quality XPS file with "-xres 300 -yres 300" option, we hope this option will work better for you.

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 view PDF files online and disable download function? I want the PDF files can be printed but not to download them.

Is VeryPDF able to disable downloads?

I have a .NET based CMS. I would like to share some of our course materials with our students as PDF documents. I want them to be able to Print the PDF documents but not to download them. Is this something that VeryPDF can do?

Thanks.
Customer
-----------------------------------------------
Yes, you can use VeryPDF PDF and Document Viewer Web App to show PDF files and disable download function, please look at following web pages for more information,

http://www.verypdf.com/wordpress/201309/how-to-show-pdf-in-web-and-disable-downloading-ability-38739.html

http://www.verypdf.com/wordpress/201310/compare-google-docs-viewer-and-verypdf-document-viewer-embedded-document-viewers-39162.html

http://www.verypdf.com/wordpress/201310/verypdf-html5-pdf-viewer-toolbar-options-39121.html

http://www.verypdf.com/wordpress/201310/how-to-embed-pdf-in-website-and-control-view-toolbar-options-39138.html

image

If you feel "VeryPDF PDF and Document Viewer Web App" will meet your requirements, you can subscribe it from following web page directly,

http://www.verypdf.com/app/html5-pdf-viewer/try-and-buy.html

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 VeryPDF Cloud API | Tagged , | Leave a comment

How to stamp unicode characters to PDF pages using pdfstamp.dll from VB6?

hi, when I try to use the examples I get "pdfstamp.dll" not found. i did copy the pdfstamp.dll to the example directory. but still it doesnt work.
also do you have more examples:

I am trying to add text (an address line in hebrew) into a pdf.

Would be nice if i could get an example on how to position the text to a specific position on the pdf (not centered, top, bottom)

I am running windows 10.

Customer
--------------------------------
Please copy the following DLL files to system32 or syswow64 folder to try again, your application will able to load "pdfstamp.dll" properly,

cimage.dll
imgconv.dll
Interop.PDFStampCom.dll
pdf2any.dll
pdflayerdll.dll
pdfsdk.dll
PdfStamp.dll
PDFStampOcx.dll
pdftoolsdk.dll

You can use PDFStampWriteTextExW() function to place text to anywhere on the PDF pages, for example,

if(!LoadVeryWDll())
    return;

GetModulePath(szPDFFile,"example.pdf");
GetModulePath(szOutFile,"textstamp_unicode_out.pdf");

//Register PDFStamp SDK with your License Key
VeryStampReg ("XXXXXXXXXXXXXXXXXXXXX");

id = PDFStampOpen(szPDFFile);
if (id > 0)
{
    for(int i = 1; i <= PDFStampGetPageCount(id); i++)
    {
        if(PDFStampEditPage(id,i) == 1)
        {
            long nFont = PDFStampSetFontA(id, "Arial Unicode MS", 0, 12, 1, 39);
            PDFStampSetFillColor(id, 0x000000FF);
            double dbTextLen = PDFStampGetTextWidthExW(
                     id, (unsigned short *)lpData, nLength/2);
            BOOL bRet = PDFStampWriteTextExW(id, 100, 200,
                     (unsigned short *)lpData, nLength/2);
            PDFStampEndPage(id);
        }
    }
    PDFStampClose(id, szOutFile);
}

FreeVeryWDll();

VeryPDF
--------------------------------
Thanks for the reply.

1. I was able to run a program with pdfstamp.dll (loading ok after putting all dll in system dir)

2. Thanks for the example but i do not have those function declared anywhere:

PDFStampWriteTextExW
PDFStampGetTextWidthExW
GetModulePath

etc,

do you have a VISUAL BASIC demo project with those functions.
Visual Basic 6 (not .net), thanks.

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

You can use following VB6 code to use Unicode functions easily,

Private Declare Function VeryStampReg Lib "PdfStamp.dll" (ByVal strReg As String) As Long
Private Declare Function PDFStampOpen Lib "PdfStamp.dll" (ByVal lpInPDF As String) As Long
Private Declare Function PDFStampClose Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal lpOutPDF As String) As Long
Private Declare Function PDFStampSetFontA Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal fontName As String, ByVal fontStyle As Long, ByVal fontSize As Double, ByVal isEmbed As Long, ByVal nCodePage As Long) As Long
Private Declare Function PDFStampSetFillColor Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal nColor As Long) As Long
Private Declare Function PDFStampWriteTextA Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal x As Double, ByVal y As Double, ByVal lpText As String) As Long
Private Declare Function PDFStampWriteTextW Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal x As Double, ByVal y As Double, ByVal lpWText As Long) As Long
Private Declare Function PDFStampWriteTextExA Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal x As Double, ByVal y As Double, ByVal lpText As String, ByVal nLen As Long) As Long
Private Declare Function PDFStampWriteTextExW Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal x As Double, ByVal y As Double, ByVal lpWText As Long, ByVal nLen As Long) As Long
Private Declare Function PDFStampEditPage Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal nPageIndex As Long) As Long
Private Declare Function PDFStampEndPage Lib "PdfStamp.dll" (ByVal hPDF As Long) As Long
Private Declare Function PDFStampGetPageCount Lib "PdfStamp.dll" (ByVal hPDF As Long) As Long
Private Declare Function PDFStampGetTextWidthA Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal lpText As String) As Double
Private Declare Function PDFStampGetTextWidthW Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal lpWText As Long) As Double
Private Declare Function PDFStampGetTextWidthExA Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal lpText As String, ByVal nLen As Long) As Double
Private Declare Function PDFStampGetTextWidthExW Lib "PdfStamp.dll" (ByVal hPDF As Long, ByVal lpWText As Long, ByVal nLen As Long) As Double

Private Sub PDFStamper_Click()

    VeryStampReg ("XXXXXXXXXXXXXXXXXXXXX")

    id = PDFStampOpen("D:\downloads\Sample_4.pdf")
    If (id > 0) Then
        nPage = 1
        pagecount = PDFStampGetPageCount(id)
        Do While nPage <= pagecount

            If (PDFStampEditPage(id, nPage) = 1) Then

                nFont = PDFStampSetFontA(id, "Arial Unicode MS", 0, 12, 1, 39)
                nRet = PDFStampSetFillColor(id, RGB(255, 0, 0))

                strUnicode = StrConv("VeryPDF", vbUnicode)
                dbTextLen = PDFStampGetTextWidthExW(id,
                           ByVal StrPtr(strUnicode), Len(strUnicode))
                nRet = PDFStampWriteTextExW(id, 100, 200,
                           ByVal StrPtr(strUnicode), Len(strUnicode))
                PDFStampEndPage (id)
            End If
            nPage = nPage + 1
        Loop
        nRet = PDFStampClose(id, "D:\downloads\Sample_4_Stamped.pdf")
    End If
End Sub

We have released a new version today, please download the new version from this URL,

http://www.verypdf.com/pdfstamp/pdfstamp_sdk.zip
http://www.verypdf.com/app/pdf-stamp/try-and-buy.html#buy-sdk

The new version is contain a "example_for_vb_unicode" folder, this is a VB6 example, you can compile and run it easily.

VeryPDF

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in PDF Stamp | Tagged | Leave a comment

I am trying to use HTML2Any to create a pdf at the moment on a Linux Centos 7 Server

Hi

I am trying to use HTML2Any to create a pdf at the moment on a Linux server and its coming up with the error 'Result is failed. No output file is created.' how can I see what is causing this?

the OS is Centos 7.

Customer
------------------------------------------
I'm trying a basic command which works fine on another server....

./html2any http://www.msn.com test.txt

/pdf/bin$ ./html2any http://www.msn.com test.txt

Result is failed. No output file is created.

its also 64bit Centos, not sure if that makes a difference

Customer
------------------------------------------
hi there...

after using strace I have actually managed to fix this
it appears it needed a couple of other libraries that aren't included by default in Centos 6 and 7..... might pay to include them in the install.sh file,

yum install libz.so.1
yum install libfontconfig.so.1
yum install libXrender.so.1

now works without issue.

Customer
------------------------------------------
Thank you for your message, if we can be of any other assistance, please feel free to let us know.

Thank you and have a nice day!

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 HTML & PDF to ePub Converter, HTML Converter (htmltools) | Tagged , | Leave a comment

How to import PDF documents into VeryPDF PDF to Word for iOS (iPhone and iPad) App?

VeryPDF PDF to Word Converter for iOS (iPhone and iPad) can be downloaded from App Store directly,

https://itunes.apple.com/us/app/verypdf-pdf-to-word/id959436075?mt=8

image

There has several methods to import a PDF file into VeryPDF PDF to Word Converter for iOS App, please refer to them at below,

Method 1: Import PDF file by Click "+" => "WiFi" option

Step 1, Touch "+" at bottom and right area, and touch "WiFi" option,

image

Step 2: You will see a URL appear in a new Window,

image

Step 3: Open a web browser, enter http://192.168.1.102 address, you will see below web page, you can click "Choose Files" button to select one or more files, and click "Upload Files" to upload these files to PDF to Word iOS App,

image

Step 4: Now, you can click on a PDF file and select "PDF to Word" option to convert the uploaded PDF file to Word RTF file easily,

image

image

Step 5: You will get a Word RTF file after a few seconds.

Method 2: Import PDF file by Click "Open In PDF to Word" option in Share button

If you received a PDF file by email, you want convert this PDF file to Word document, this can be done easily by "VeryPDF PDF to Word Converter for iOS (iPhone and iPad)" App, please refer to following steps,

Step 1: Click attached PDF file in Email, you will able to view this PDF file in another Window,

image

Step 2: In the PDF Preview Window, you can click "Share" icon, and click "Open in PDF to Word" icon, you will able to send this PDF file to "VeryPDF PDF to Word Converter for iOS (iPhone and iPad)" App,

image

Step 3: In the PDF to Word App, please click this PDF file, select "PDF to Word" option, then you can convert this PDF file to Word RTF file easily,

image

image

image

Step 4: You will get a Word RTF file after a few seconds.

VeryPDF PDF to Word Converter for iOS (iPhone and iPad) can be used easily, if you encounter any problem with this App, please feel free to let us know, we will assist you asap.

http://support.verypdf.com/open.php

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 iOS & iPhone & iPad | Tagged , , | Leave a comment
Page 1 of 1,34512345...102030...Last »