L
Lou Zher
Hey all,
I'm trying to understand some differences in behavior that I'm seeing with
InfoPath 2007's Export to PDF feature.
I have a filled out form that happens to be based on a template hosted in
SharePoint that has the page setup setting of landscape.
I've performed an export on five different machines. In each case I've
cleared the template cache (%userprofile%\Local Settings\Application
Data\Microsoft\InfoPath), opened the same form .xml file from a network
share, waited for the template to be fetched from SharePoint, selected
[File] [Export to] [PDF or XPS] and selected PDF as the type and "Minimum
size (publishing online)" and hit [Publish]. The result was four different
sized PDFs. Two of those correctly preserved the landscape-ness of the
template's settings which made three pages, the other two did not and made
two. Opening the PDF and looking at their page sizes reveal the following:
6.69x9.50 (the two portrait sized PDFs), 10.87x9.11, 10.56x8.88.
I seem to recall that there were a few versions of the SaveAsPdfAndXps
download, but I think all my machines have the same one. They all have the
same %CommonProgramFile%\Microsoft Shared\OFFICE12\EXP_PDF.DLL file anyway
(compared with FC /b).
I looked around in [Tools][Options] looking for settings that could affect
it, but couldn't find any. I tried using ProcMon to see if I could find some
registry keys or config files that InfoPath was using that could cause the
variance in output but nothing stood out. I thought that perhaps Export
would be affected by the default printer settings, but it didn't seem to be.
I don't mind terribly that there is a subtle size variation, but I need to
figure out how to consistently make it Export with landscape preserved.
In general, the export doesn't really behave as I would expect in any case.
I would expect it to make PDF pages the size specified in the template with
the margins, headers and footers specified as well, but this is not the
case.
I might consider exporting to XPS and then converting it to PDF, but my
initial testing shows equal variability in output on XPS.
Printing to the XPS Document Writer seems to produce consistent results, but
this is more problematic for me to automate.
Any ideas?
-HS
I'm trying to understand some differences in behavior that I'm seeing with
InfoPath 2007's Export to PDF feature.
I have a filled out form that happens to be based on a template hosted in
SharePoint that has the page setup setting of landscape.
I've performed an export on five different machines. In each case I've
cleared the template cache (%userprofile%\Local Settings\Application
Data\Microsoft\InfoPath), opened the same form .xml file from a network
share, waited for the template to be fetched from SharePoint, selected
[File] [Export to] [PDF or XPS] and selected PDF as the type and "Minimum
size (publishing online)" and hit [Publish]. The result was four different
sized PDFs. Two of those correctly preserved the landscape-ness of the
template's settings which made three pages, the other two did not and made
two. Opening the PDF and looking at their page sizes reveal the following:
6.69x9.50 (the two portrait sized PDFs), 10.87x9.11, 10.56x8.88.
I seem to recall that there were a few versions of the SaveAsPdfAndXps
download, but I think all my machines have the same one. They all have the
same %CommonProgramFile%\Microsoft Shared\OFFICE12\EXP_PDF.DLL file anyway
(compared with FC /b).
I looked around in [Tools][Options] looking for settings that could affect
it, but couldn't find any. I tried using ProcMon to see if I could find some
registry keys or config files that InfoPath was using that could cause the
variance in output but nothing stood out. I thought that perhaps Export
would be affected by the default printer settings, but it didn't seem to be.
I don't mind terribly that there is a subtle size variation, but I need to
figure out how to consistently make it Export with landscape preserved.
In general, the export doesn't really behave as I would expect in any case.
I would expect it to make PDF pages the size specified in the template with
the margins, headers and footers specified as well, but this is not the
case.
I might consider exporting to XPS and then converting it to PDF, but my
initial testing shows equal variability in output on XPS.
Printing to the XPS Document Writer seems to produce consistent results, but
this is more problematic for me to automate.
Any ideas?
-HS