PDF Export Different
pinbot
Texas
I send the output from FastReports to a HylaFax fax server as a pdf file.
This worked ok with FR Studio but now that I've converted to FR.NET, I'm getting conversion errors on the fax server. I believe it uses GhostScript to convert to a Tiff file to fax it out.
The errors seem to be related to fonts.
In FR Studio, I passed "False" to all the export parameters (background, embedded, compressed, etc).
I've tried all combinations with FR.NET and I can't seem to get Hylafax to be happy with the .pdf file I'm sending.
There seem to be 2 major differences between the PDF export from FR Studio and FR.Net.
FR Studio exports with PDF Version 1.5 and the Font Encoding is "Ansi"
FR.Net exports with PDF Version 1.4 and the Font Encoding is "Identity-H"
The "Actual Font" is different in the 2 exported .pdf files as well.
I've included screen shots from Acrobat reader with the properties for both FR Studio and FR.Net.
I would love to just export as a TIFF and submit it that way to the fax server. The problem is that the FR.NET (and FR Studio) TIFF Export treats all the pages as 1 very long .tif file. TIFF supports multiple pages but the export in FR does not seem to export that way.
Is there any way to make the TIFF export as a Multipage TIFF file? I had the source for FR Studio but I didnt want to write my own custom MultiPage Tiff Export. I don't have the source for FR.NET.
Thanks,
Bryan
This worked ok with FR Studio but now that I've converted to FR.NET, I'm getting conversion errors on the fax server. I believe it uses GhostScript to convert to a Tiff file to fax it out.
The errors seem to be related to fonts.
In FR Studio, I passed "False" to all the export parameters (background, embedded, compressed, etc).
I've tried all combinations with FR.NET and I can't seem to get Hylafax to be happy with the .pdf file I'm sending.
There seem to be 2 major differences between the PDF export from FR Studio and FR.Net.
FR Studio exports with PDF Version 1.5 and the Font Encoding is "Ansi"
FR.Net exports with PDF Version 1.4 and the Font Encoding is "Identity-H"
The "Actual Font" is different in the 2 exported .pdf files as well.
I've included screen shots from Acrobat reader with the properties for both FR Studio and FR.Net.
I would love to just export as a TIFF and submit it that way to the fax server. The problem is that the FR.NET (and FR Studio) TIFF Export treats all the pages as 1 very long .tif file. TIFF supports multiple pages but the export in FR does not seem to export that way.
Is there any way to make the TIFF export as a Multipage TIFF file? I had the source for FR Studio but I didnt want to write my own custom MultiPage Tiff Export. I don't have the source for FR.NET.
Thanks,
Bryan
Comments
FR.Net exports PDF as unicode using CID-fonts. Probably your fax does not support this mode. Sorry, we cannot change our PDF export.
Regarding TIFF export: you may set the "Separate file for each page" flag - this will produce several .tiff files.
Alex,
Thank You! The Multi-Frame Tiff seems to work well.
Except, and this is not your fault....
Since now I am submitting to the fax server as a TIFF, it's assuming I'm sending in the right resolution for a fax and is not resampling the file.
Fax formats are 203x98 dpi resolution (normal) or 203x196 dpi (fine).
Would it be possible to add separate Horizontal Resolution and Vertical Resolutions to the export?
When I export at 98dpi, the length of the page is perfect, but since the horizontal sampling is different, it's hard to read.
If I export at 203dpi, then horizontally it's ok but the page length is WAY too long (zoomed).
It'd be nice if the fax server resampled at the correct dpi (which it seems to do if I submit as PDF or PostScript) but it does not.
I've including the resultant received faxes so you can see my problem.
Again, thanks for adding the MultiFrame Tiff!
Bryan.
I've added separate horizontal and vertical resolutions. Changes will be available in the next daily build.
Alex,
I sincerely appreciate the changes to the TIFF export.
However, I think I found out the major problem.
It looks like you are not storing the selected resolution in the TIFF file itself. It always says 96dpi for both no matter what I choose on the export. I've included images.
The fax server cannot resize/resample the file without knowing the existing resolution.
I'm sure it'll work if I set the correct H/V resolution but now if I view the file on the screen (before sending) it also cannot correctly resize the file.
Can you add/store the correct H/V resolution to the TIFF file? I think that'll allow me to export at 400x400 resolution and let the fax server correctly resample to it's desired resolution.
Thanks again.
Bryan
Yes, I don't touch the resolution, but scale the image and maintain aspect ratio instead. I will try to modify my code to work with resolution as well.
Thank you.
I think that will solve the last problem for me.
[img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Bryan[/img]
I was wondering why my old program worked with FR Studio when I exported to Tiff and then faxed.
Looks like it does set the Resolution in the Tiff file.
Bryan
I've fixed the FR.Net export, so it writes out the resolution to output file now. The updated version will be available in 6 hours.
Hey Alex,
I know this thread is over 2 years old but have new question regarding it.
Seems like my fax server starting accepting the PDF files generated by FR.Net.
Now I'm building a new Fax server and am having conversion problems that I did 2 years ago. Cannot seem to figure out the difference between my two systems.
I can, however, submit a file in postscript (.ps) format and it faxes great (on both fax servers).
Is there a way to export a report in PostScript format? I can install a "Ghostscript PDF" printer which I can route to a .ps file but wanted to see if there was a way to have Fastreports.Net export to postscript directly so I don't have to wait for the printer driver to write the file.
Thanks,
Bryan
There is no way to export to .ps now. We have no plans to implement it in the near time.
Thanks for the quick reply. I didn't think you were.
I'll see if I can make my new fax server accept the PDF exports from FR.Net like my old one.
Or just use any of the "Fake Printer" PostScript creators.