Quantcast
Channel: PDFCreator English - pdfforge forums
Viewing all 1241 articles
Browse latest View live

Using PDF Creator to generate PDF and Paper copy

$
0
0

@hwshaw wrote:

I am evaluating using PDF Creator on some windows based equipment we have. When the machine currently completes a batch it prints a PDF to a defined folder. The operator does not see anything or need to interact.

Looking at other installs and forum posts for PDF creator the SW can be configured to both create a PDF and Paper copy in the same action? Which is what we want. However can this print be triggered without the operator needing to interact with the PC? The PDF will be sent to the same location and the paper print to the same printer.

Posts: 1

Participants: 1

Read full topic


PDFCreator Server CS-Script logger not working

$
0
0

@Josh.H wrote:

I have a 30 day trial license for version 2.1.1 Build 8646, and I'm trying to write / debug a CS-Script. I am using logger.debug, but it is not doing anything. I have checked the Event Viewer log, and the PDFCreatorServer.log file, and there is nothing there.

Here is the C#:

using NLog;
using pdfforge.CustomScriptAction;
using pdfforge.PDFCreator.Conversion.Jobs.Jobs;
using pdfforge.PDFCreator.Conversion.Settings;
using pdfforge.PDFCreator.Utilities.Tokens;

public class PdfCreatorScript : IPDFCreatorScript
{
public ScriptResult PostConversion(Job job, Logger logger)
{
logger.Debug(job.Profile.FileNameTemplate.ToString());
logger.Debug("This is a test");

    return ScriptResult.Abort;
}

public ScriptResult PreConversion(Job job, Logger logger)
{
    return ScriptResult.Success;
}

}

How can I debug / print out values of different properties?

Posts: 1

Participants: 1

Read full topic

Stamp on PDF / CreateObject / pdfforge / PDFCreator Pro

$
0
0

@sdan wrote:

Hi everyone,

We have been using Excel (VBA) to create and add stamps on PDF (PDFCreator version 1.7.3) since many years.
The Excel function was : Set pdf = CreateObject("pdfforge.pdf.pdf"), and it worked perfectly.
We had to download the new version of PDFCreator Pro, and since then, the function doesn't work anymore. Is it replaced by another function? If so, which one? How to change the code?

Here a part of our actual code:

Sub STAMP()
Dim pdf As Object, pdfText As Object, pdfText1 As Object, pdfText2 As Object, pdfLine As Object, pdfLine2 As Object, pdfLine3 As Object, pdfLine4 As Object
Dim sNomDoc As String
Dim Num As Long
Dim REF As String
Dim nlot As String

Set pdf = CreateObject("pdfforge.pdf.pdf")
Set pdfText = CreateObject("pdfforge.pdf.pdfText")
Set pdfText1 = CreateObject("pdfforge.pdf.pdfText")
Set pdfText2 = CreateObject("pdfforge.pdf.pdfText")
Set pdfLine = CreateObject("pdfforge.pdf.pdfline")
Set pdfLine2 = CreateObject("pdfforge.pdf.pdfline")
Set pdfLine3 = CreateObject("pdfforge.pdf.pdfline")
Set pdfLine4 = CreateObject("pdfforge.pdf.pdfline")

REF = ThisWorkbook.Sheets("FEUIL2").Range("B2")
nlot = ThisWorkbook.Sheets("FEUIL2").Range("B4").Value

sNomDoc = ThisWorkbook.Path & ThisWorkbook.Sheets("FEUIL2").Range("B7") & "" & REF & "_" & ThisWorkbook.Sheets("FEUIL2").Range("B3").Value & ".pdf"
If Dir(sNomDoc) <> "" Then
Num = pdf.NumberOfPages(sNomDoc)
Else
MsgBox "FICHIER INTROUVABLE"
End If

With pdfText
    .fillOpacity = 1

    .FontColorBlue = 255
    .FontColorGreen = 0
    .FontColorRed = 0

    .FontName = "ariblk.TTF"
    .FontSize = 10
    .Rotation = 0
    .Text = "VALABLE POUR"
    .XPosition = 254
    .YPosition = 193

    pdf.AddTextToPDFFile sNomDoc, ThisWorkbook.Path & "\" & "AddText.pdf", 1, Num, pdfText
End With

[...]
End Sub

Thanks for your help,
Best regards
Sarah

Posts: 1

Participants: 1

Read full topic

Ads over title and author

$
0
0

@Alastair_Lewis wrote:

Hi,

In the past I was able to add title and author when I create a new pdf. But, now there is often an advert over the area where the title and author is entered. What do I need to do to be able to enter these items again?

Thank you

Alastair

Posts: 3

Participants: 2

Read full topic

Error signing 12999

$
0
0

@Cao wrote:

I was already signing documents in PDF Creator, but since I've updated to 4.0.3 version, I get error:

An error occurred: Error signing the document (12999)

[Error] pdfforge.PDFCreator.Core.Workflow.ConversionWorkflow.RunWorkflow: Error Signature_GenericError: iText.Kernel.PdfException while signing:
Unknown PdfException.
[Error] pdfforge.PDFCreator.Core.Workflow.JobRunner+d__10.MoveNext: The job failed: iText.Kernel.PdfException while signing:
Unknown PdfException. (Signature_GenericError)

Please let me know what to do.
Thanks!

Error PDF Creator

Regards

Posts: 2

Participants: 2

Read full topic

Excel VBA Marco doesn’t work

$
0
0

@Victor_Y wrote:

Hello all,

I used to use the excel vba code below; however it doesn’t work in v3.4.0 pdfcreator
How should I amend the code to run the pdfcreator through excel vba.
Thanks in advance :smiley:

Sub PrintToPDF(sPDFPath, sPDFName, sMasterPass)

' Designed for late bind, no references req'd
Dim pdfjob As Object
Dim bRestart As Boolean

Do
Sleep 1000
bRestart = False
Set pdfjob = CreateObject("PDFCreator.PDFCreatorObj")
If pdfjob.cStart("/NoProcessingAtStartup") = False Then
    'PDF Creator is already running.  Kill the existing process
    Shell "taskkill /f /im PDFCreator.exe", vbHide
    DoEvents
    Set pdfjob = Nothing
    bRestart = True
End If
Loop Until bRestart = False



'Set all defaults
With pdfjob
    .cOption("UseAutosave") = 1
    .cOption("UseAutosaveDirectory") = 1
    .cOption("AutosaveDirectory") = sPDFPath
    .cOption("AutosaveFilename") = sPDFName
    .cOption("AutosaveFormat") = 0    ' 0 = PDF
    'The following are required to set security of any kind
    .cOption("PDFUseSecurity") = 1
    .cOption("PDFOwnerPass") = 1
    .cOption("PDFOwnerPasswordString") = sMasterPass

    'To set individual security options
    .cOption("PDFDisallowCopy") = 1
    .cOption("PDFDisallowModifyContents") = 1
    .cOption("PDFDisallowPrinting") = 1

    'To force a user to enter a password before opening
    .cOption("PDFUserPass") = 1
    .cOption("PDFUserPasswordString") = sMasterPass
    'To change to High encryption
    .cOption("PDFHighEncryption") = 1

    'Get ready for the print job
    .cClearCache
End With

'Delete the PDF if it already exists
If Dir(sPDFPath & sPDFName & ".pdf") = sPDFName & ".pdf" Then Kill (sPDFPath & sPDFName & ".pdf")

'Print the document to PDF
ActiveSheet.PrintOut copies:=1, ActivePrinter:="PDFCreator"

'Wait until the print job has entered the print queue
Do Until pdfjob.cCountOfPrintjobs = 1
    DoEvents
Loop
pdfjob.cPrinterStop = False

'Wait until the file shows up before closing PDF Creator
Do
    DoEvents
Loop Until Dir(sPDFPath & sPDFName & ".pdf") = sPDFName + ".pdf"
Set pdfjob = Nothing

End Sub

Posts: 1

Participants: 1

Read full topic

PDFCreator slow in remote desktop

$
0
0

@Giupy wrote:

Hi there,
in my company we have several PCs with PDFCreator installed and it works great.
Most of us started to work using the Remote Desktop app. In these case PDFCreator is very slow and we don't understand why. It normally takes about 10 seconds for generate our .pdf but working with the remote control it takes about 40 seconds.
It's a shame because we really do enjoy working with PDFcreator. Do you have any suggestions?
Thanks in advance

Giupy

Posts: 3

Participants: 2

Read full topic

PowerShell Eror: Method invocation failed because ... [PDF.COM] does not contain method

$
0
0

@Robinusmaximus wrote:

Hello,

I'm trying to do a simple print/conversion from pdf to text and I'm getting the below errors when I try to execute the following code:

$PDFCreator = New-Object -ComObject PDFCreator.JobQueue
$PDFCreator.Initialize()
$PJ = $PDFCreator.PrintFileSwitchingPrinters('C:\Users\ivaar\OneDrive\Documents\GitHub\PowerShell\ACA-guide.pdf', $TRUE)
$PJ.SetProfileByGuid('TextCon')
$PJ.ConvertTo('C:\Users\ivaar\OneDrive\Documents\GitHub\PowerShell\Converted-Guide.txt')
$PDFCreator.ReleaseCom()



Method invocation failed because [pdfforge.PDFCreator.UI.COM.Queue] does not 
contain a method named 'PrintFileSwitchingPrinters'.
At C:\Users\ivaar\OneDrive\Documents\GitHub\PowerShell\TestTwo.ps1:5 char:1
+ $PJ = $PDFCreator.PrintFileSwitchingPrinters('C:\Users\ivaar\OneDrive ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound
 
You cannot call a method on a null-valued expression.
At C:\Users\ivaar\OneDrive\Documents\GitHub\PowerShell\TestTwo.ps1:6 char:1
+ $PJ.SetProfileByGuid('TextCon')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
You cannot call a method on a null-valued expression.
At C:\Users\ivaar\OneDrive\Documents\GitHub\PowerShell\TestTwo.ps1:7 char:1
+ $PJ.ConvertTo('C:\Users\ivaar\OneDrive\Documents\GitHub\PowerShell\Co ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Posts: 1

Participants: 1

Read full topic


Internal Ghost script Error

$
0
0

@annakrejci wrote:

Hi,
I have free version of PDFCreator and sometimes I am experiencing 29100 Internal Ghostscript error.
I would like to know if this error is present only in free version or if there are also users with pro version who are experiencing this type of error.

Thank you.

Posts: 2

Participants: 2

Read full topic

Error Message while saving

$
0
0

@Andre_Lindholm wrote:

Hi, we got this Error Message (in Swedish) and I couldn't find any relevant answer to it here so I start a new post.

image

It translates to:
Files ... could not be saved. Maybe it is currently being used, or you lack the authority to take the necessary action. Please use a different file name and try again.

We have had a couple of those the past days, how do i solve them?
We are payed customer with licenses.

Kind regard
André Lindholm

Posts: 2

Participants: 2

Read full topic

Save as jpg/png - landscape

$
0
0

@MaestroKloas wrote:

Hi!

Using PDFCreator for a long time, but I'm running into a problem for the first time.
I've got an Excel document in landscape oriëntation, but when I print it as png or jpg, it comes out as portait. I need to open it in paint and rotate it manually.
If I print it as PDF, it keeps the landscape oriëntation, no problem there.

I've seen some older posts with similar problems, but no clear solutions.
Hope there is a solution to this.

Kind regards,
William

Posts: 2

Participants: 2

Read full topic

ViewerStartsOnPage doesn't work correct

$
0
0

@markusb68 wrote:

Using v.4.03:
Set Profile / PDF Format / Startpage to 1
Avrobat always opens PDF on page 2 and NOT on Page 1.
Also tried to change the ViewerStartsOnPage setting in registry does not help.

Posts: 1

Participants: 1

Read full topic

Wildcards/target folders not working

$
0
0

@domino7 wrote:

Hello all,

I've been trying to write a script to have PDFCreator pull the contents from a target folder, process it through a profile I've created that will convert the documents to PDF/A-1b, and place the converted files into a new folder. I keep running into an issue where the script will not run with wildcards like *.pdf nor will it run with simply the target folder named. I have both the target and destination folders already set up, but I can only get the script to work if I specify a single, named document in the initial target folder. I've read about other people using wildcards like *.pdf in their script with success but I can't seem to get it to work. Anybody else having this issue? If I can get it to pull ALL the contents of the target folder regardless of file extension that would be even better!

I've checked the spelling and syntax of my script and cannot seem to find an error with either. (Script listed below for reference)

C:\Program Files\PDFCreator\pdfcreator.exe /PrintFile="\FILESRV2\UserRedirectFolders$\user\Desktop\PDFCreatorTest\TestDocPDF\ *.pdf" /PrinterName="PDFCreator" /OutputFile="\FILESRV2\UserRedirectFolders$\user\Desktop\PDFCreatorTest\TestDocPDFA" /Profile="PDF/A-1b"

NOTE: I've tried the same script but with file paths from my local disk rather than a network share, as shown above. Both methods work the exact same way; single, specific files named in the target folder are pulled, processed, and placed in the destination folder. Wildcards or target folder only scripts do not work in either instance.

Am I missing something here? Any help would be greatly appreciated!

Thank you!

Posts: 1

Participants: 1

Read full topic

PDFCreator 4_0_3

$
0
0

@StephenH1 wrote:

Hope you can help
I have just installed the latest version of PDFCreator 4_0_3 and when I try to run the c# sample code I receive the following error
The type or namespace name 'pdfforge' could not be found (are you missing a using directive or an assembly reference?

I have tried re referencing the "PDFCreator.ComWrapper" dll but still the same error.
I have tried re entering the using reference "using pdfforge.PDFCreator.UI.ComWrapper;" but still the same error.
Any ideas what is going wrong?

Thanks in advance for your help.
Regards
Stephen

Posts: 2

Participants: 1

Read full topic

Create defaults with PDFCreator 3.51?

$
0
0

@software.release wrote:

It is not my first testing, I have made several changes into PDFCreator for all users; some new users (without any settings) is going to be created. I have been created new users into a VM using Windows 10 Pro 1909 (x64) and none of current settings are correctly applyed:

[HKEY_USERS.DEFAULT\Software\pdfforge\PDFCreator\Settings\ApplicationSettings]
"EnableTips"="False"
"UpdateInterval"="Monthly"

[HKEY_USERS.DEFAULT\Software\pdfforge\PDFCreator\Settings\ApplicationSettings\RssFeed]
"Enable"="False"

[HKEY_USERS.DEFAULT\Software\pdfforge\PDFCreator\Settings\ApplicationSettings\UsageStatistics]
"Enable"="False"
"UsageStatsInfo"="False"

This versions 3.50, 3.51 and 4.0.4 (legacy setup) don't take into account of global settings proposed?
HKEY_USERS.DEFAULT\Software\pdfforge\PDFCreator\Settings\ApplicationSettings

Create defaults with PDFCreator (3.5.1 and 4.0.4)
https://docs.pdfforge.org/pdfcreator/3.5/en/pdfcreator/pdfcreator-settings/predefine-settings/#create-defaults-with-pdfcreator
https://docs.pdfforge.org/pdfcreator/4.0/en/pdfcreator/pdfcreator-settings/predefine-settings/#create-defaults-with-pdfcreator

Is it a bug?

Thank you in advance

Posts: 1

Participants: 1

Read full topic


Automatic PDF and print out and updated file name

$
0
0

@hwshaw1 wrote:

My company are considering buying PDF Creator PRO for some of our production equipment. The equipment completes a cycle. On completion the machine automatically triggers a printout.

What we would like PDF creator PRO to do is 1) Print out a PDF and a hard copy to a defined local folder, this I know will work I have tested this its also covered on the forum. 2) Append the time and date to the PDF file name prior to saving. 3) This is completed automatically without the user needing to interface with the machine. Point 2 and 3 I do not see this covered on the forum.

Posts: 2

Participants: 2

Read full topic

Automate PDF printing from Revit

$
0
0

@clogboy wrote:

I'm writing a batch PDF printing add-in (C#) for Autodesk Revit (a 3D CAD program). It is important to notice that the Print command has to be given through Revit's own API and that it's not possible to convert a drawing or a document to PDF in another way. So my best way to go about this is to alter the settings of the active print job itself through the comwrapper.

I've read several topics dealing with printing automation, and as I understand it, the best way to do it is to get access to the printing queue of the PDFcreator, and change the profile settings of the next job to automatically save it to a filename and -path without confronting the user with the PDFcreator user interface. Is this correct? From a newb perspective, what would be the best approach, in terms of accessing the job profile and changing the settings? Would I do this before or after the job is submitted to the print queue?

As a shortcut, would it be easier to create a profile (programmatically) and set that for the specific print job?

Thanks in advance.

Posts: 6

Participants: 2

Read full topic

Don't get a dialoge box to choose where to save

$
0
0

@zoete wrote:

hello,

I recently got a computer with windows 8.1. There was no pdf-printer installed and I downloaded PDF creator. No difficulties to install it. When I want to print something (in excel) to a PDF, i can select PDF Creator but when I press 'Print' I don't get the dialoge box where you can choose where you want to save the PDF.

Can somebody help me with this problem? I searched the forum but I didn't find a topic usefull to me.
Thanks,
Zoete

Posts: 2

Participants: 2

Read full topic

PDFCreator Server Support Non Existant

$
0
0

@BPStuart wrote:

We are currently trialing PDFCreator Server.

I raised a support case via the Web Form and got a reply back from support@pdfforge.org back on 30/04 and subsequently provided screenshots and debug logs.

I've chased a couple of times now since, and have still not got a reply from support. It appears I'm simply being ignored.

If the issue can be resolved and we can prove our POC, we will likely purchase the product, but as Support appears to be non existent we will likely be looking for an alernative product following the weekend.

Not good.

Posts: 1

Participants: 1

Read full topic

Upgrade problems from 3.5.1 to 4.0.x

$
0
0

@XanderVR wrote:

Hi,

I am running into problems when trying to upgrade PDFCreator Business 3.5.1. to PDFCreator Professional 4.0.4

We deploy 3.5.1 through GPO with an MST to supply the license.
When I add the 4.0.4 package the software installation takes a long time (on my PC it took almost half an hour) just to find out that the 3.5.1 was removed and 4.0.4 was not installed.

When I run it locally using msiexec andf /qn it also takes a long time, but doesn't install anything in the end.
When I run it without /qn I first get a message stating that there is an error installing the printers, followed by a rollback.
When I try it again I get a message stating that something went wrong during installation, followed by a rollback.
Using msiexec with /qn and MST on the 3.5.1 MSI takes 2 minutes and everything is installed without issues.

I'm running WIndows 10 Pro, and have .NET Framework 4.8 installed.

Posts: 1

Participants: 1

Read full topic

Viewing all 1241 articles
Browse latest View live