PDF Export Different

pinbotpinbot Texas
edited 5:39AM in FastReport .NET
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







Comments

  • edited 5:39AM
    Hello,

    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.
  • edited 5:39AM
    I will add the multi-frame TIFF export in the next dailty build.
  • pinbotpinbot Texas
    edited 5:39AM

    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.
  • edited 5:39AM
    Hello Bryan,

    I've added separate horizontal and vertical resolutions. Changes will be available in the next daily build.
  • edited 5:39AM
    Sorry, I was not able to upload my changes before the start of build process. So it will be available in the 1.1.51 version.
  • pinbotpinbot Texas
    edited 5:39AM

    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
  • edited 5:39AM
    Hi 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.
  • pinbotpinbot Texas
    edited 5:39AM

    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]
  • pinbotpinbot Texas
    edited 5:39AM

    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
  • edited July 2009
    Yes, FR Studio does this, but there is no option to specify separate resolutions and make a tiff multi-frame.

    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.
  • pinbotpinbot Texas
    edited 5:39AM

    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




  • edited 5:39AM
    Hi Bryan,

    There is no way to export to .ps now. We have no plans to implement it in the near time.
  • pinbotpinbot Texas
    edited 5:39AM

    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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.