Page orientation problem when converting pdf to PDFA

Hi, I drag drop a pdf to the Choose a File to Convert pane in PDFCreator.
I then choose the PDF/A profile to convert the PDF to PDF/A.

The problem is the orientation with the resulting PDF/A.
If I set Orientation to Landscape for the profile the result is Landscape.
If I set Orientation to Portrait for the profile the result is Landscape.
If I set Orientation to Auto-Detect for the profile the result is Portrait.

How to set the orientation to Portrait?
The Auto-Detect-option sets the orientation to Portrait but it does not feel reliable.

Thank you for any help!

Hi,

this sounds like a bug (detecting the orientation can be tricky, so auto-detect doesn’t always work properly, but setting it directly should always work). Which version and edition of PDFCreator are you using?
Does it behave the same way if you print the PDF to the PDFCreator printer instead of using drag&drop?

Best regards

Robin

Hi, thanks for your response.
I am using PDFCreator Free v3.2.0 Build 11758.

If I print the pdf to the PDFCreator printer the orientation is correct. But via drag&drop it does not get correct.

What I am trying to do is to print via api, convert a PDF to PDF/A.
I set a profile with a specific orientation via printJob.SetProfileByGuid. But the orientation behaves the same way as for drag&drop. Besides that everything works great :slight_smile:

Best Regards
Niklas

Hi Niklas,

drag&drop will use the PDF as input without first converting it to postscript, so it sounds like there is something wrong with this specific workflow. When accessing the API, did you add the PDF files to the queue directly, or did you print them to the PDFCreator printer? If you ensure the PDFs are printed to the printer and not added to the queue directly, I’d assume it should give the same results as printing to the PDFCreator printer manually.
We will also look into the issue on our end.

Best regards

Robin

Hi, it seems to work when I print to the printer as you suggested.

This generates incorrect orientation:
ProcessStartInfo info2 = new ProcessStartInfo();
info2.FileName = “C:\Program Files\PDFCreator\PDFCreator.exe”;
info2.Arguments = “/PdfFile=”" + pdf + “”";
var process = Process.Start(info2);

This generates correct orientation.
ProcessStartInfo info2 = new ProcessStartInfo();
info2.FileName = @“D:\Program\Foxit Reader\FoxitReader.exe”;
info2.Arguments = “/t “” + pdf + “” “PDFCreator””;
var process = Process.Start(info2);

Best regards
Niklas

Thanks for helping with the testing, I will create a ticket to get this fixed in a future update.