Problem with PDF export and embedded font (characters disappear)
Designer: Crystal Reports 2008 SP 2
Engine: CR4E 2.0 SP2 (runtime_12.2.203)
Hi there!
we found a problem in the pdf export. It seems like there would be a problem with the embedded fonts, the problem is as follows:
Rpt file with, for example only a text box which contains the german string " Änderungs Schlüssel ".
Export the Rpt file with CR4E to a pdf file.
When we open the pdf file in Adope Reader 8, the text appears to be correct,
but if we print the PDF file from the Adope Reader, the text changes to " nderungs Schl sselu201C,
here we are missing ther german umlaute.
When we open the file for example with an alternative PDF reader like Foxit Reader, there they are also missing.
After i found some posts here in the forum, there are people facing the same problem, since i couldn't find a solution in the forum, we build a little workaround for it that works for us.
For all of you that have the same problem here the workaround:
We used the IText JAVA library, this jar can can help as to fix the PDF file so the text is displayed correctly.
Here the code:
ReportClientDocument doc = new ReportClientDocument();
doc.setReportAppServer(ReportClientDocument.inprocConnectionString);
doc.open("C:\XY.rpt", OpenReportOptions._openAsReadOnly);
//... database logon,.....
InputStream inputStream = doc.getPrintOutputController().export(ReportExportFormat.PDF);
inputStream = PDFHealer.heal(inputStream);
//... write the stream some where
The helper class using IText:
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfImportedPage;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.PdfWriter;
public class PDFHealer
public static InputStream heal(InputStream in) throws DocumentException, IOException
try
ByteArrayOutputStream out = new ByteArrayOutputStream();
PdfReader reader = new PdfReader(in);
// we retrieve the total number of pages
int n = reader.getNumberOfPages();
// step 1: creation of a document-object
Document document = new Document();
// step 2: we create a writer that listens to the document
PdfWriter writer = PdfWriter.getInstance(document, out);
// step 3: we open the document
document.open();
// step 4: we add content
PdfContentByte cb = writer.getDirectContent();
int i = 0;
while( i < n )
document.newPage();
i++;
PdfImportedPage page1 = writer.getImportedPage(reader, i);
cb.addTemplate(page1, 0, 0);
// step 5: we close the document
document.close();
ByteArrayInputStream ret = new ByteArrayInputStream(out.toByteArray());
out.close();
return ret;
finally
in.close();
Similar Messages
-
Problem with pdf export and setting of the paper size
Hi,
I develop plugins for InDesign server.
Can anybody suggest me an way to exports a pdf/ps file from a indesign document with my custom adjustment of the output "paper" size?
I tried with kPrintActionCmdBoss but the "SavePDFAs" popups although I set kSuppressEverything(!?)
When I used kPDFExportCmdBoss I cannot set paper size.
greetingsThe helper class using IText:
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfImportedPage;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.PdfWriter;
public class PDFHealer
public static InputStream heal(InputStream in) throws DocumentException, IOException
try
ByteArrayOutputStream out = new ByteArrayOutputStream();
PdfReader reader = new PdfReader(in);
// we retrieve the total number of pages
int n = reader.getNumberOfPages();
// step 1: creation of a document-object
Document document = new Document();
// step 2: we create a writer that listens to the document
PdfWriter writer = PdfWriter.getInstance(document, out);
// step 3: we open the document
document.open();
// step 4: we add content
PdfContentByte cb = writer.getDirectContent();
int i = 0;
while( i < n )
document.newPage();
i++;
PdfImportedPage page1 = writer.getImportedPage(reader, i);
cb.addTemplate(page1, 0, 0);
// step 5: we close the document
document.close();
ByteArrayInputStream ret = new ByteArrayInputStream(out.toByteArray());
out.close();
return ret;
finally
in.close(); -
Indesign CS5 - Problems with PDF-Export
Hello community,
we do have a problem with Indesign CS5 and exporting data into PDF. It is about that logo on that white surface, which doesnt come along with the rest after the pdf-export. What we did was: We created that white surface in Indesign itself, put an effect on it with the Indesign effect gallery and then imported the logo in the surface ... the logo itself is .psd data. So, if we export it into pdf like that, it is just dissapeared. Does anyone have had a similar problem and what can be done about it?
By the way ... if you put, for example, a simple backgroundshadow on a picture ... done also with the Indesign effect gallery, then you get just a white surface instead of the shadow, after the export into pdf. It does maybe correlate with the other problem ... not sure. Any suggestions?
Thank you very much for your help and kind regards ...I would create the entire logo, including the white background, in Illustrator, save as PDF and place that in ID.
-
Fonts problems with PDF reports and Lexmark printers
Hi,
since yesterday we use Oracle Reports Services 10.1.2.3.0 as our productive reports services.
When we print PDF reports on one of the following printers, the fonts size isn't correct (in the report defined as font size 8, on the paper the font size is about 16!).
- Lexmark T620 PS3
- Lexmark W820 PS3
The printers work correct if I print out a PDF file via Adobe Acrobat Reader.
Best regards
FloHi,
I'm afraid that this was a couple of years ago so I can't remember the font we used.
If memory serves then I think it is something to do with True Type fonts.
Have you searched Metalink? I think that's where I originally got some advice about the fonts in PDF documents. -
Big problem with PDF export from CS4
Create a document with facing pages. Then place a rectangle or any other object on the master through the whole spread. Place the text or any other object on the master over the first rectangle on the both pages. Now, when exporting pdf, the text on the left pages is disappeared becaouse it covered by the copy of the rectangle. The variation of the problem is when using any tansparencies, then they become "less transparent" on the left pages because of this strange dublicating.
There is an archive in attachment that contains indd and pdf files with this problem.Thanks, it works, but bug is still bug. In some cases it's impossible to do this, for example my recent case: it was text with huge outer glow on master pages. Outer glow from right page dublicates to the left and covered left text, and there's no way to move effect to another layer separately. The solution was to detach these texts from masters, but it's also unhandy solution.
It's hard to detect such cases unless it happen with big elements. -
When exporting to pdf in Photoshop CC in CMYK, Acrobat opens it with a blank page and the message that it's out of memory. Exporting the same file as RGB opens fine. Any ideas? Exporting as CMYK has worked fine in all the previous versions of Photoshop and still does in CS6.
This is still a problem unfortunately: http://forums.adobe.com/thread/1265266
-
Problem with SWF export and audio looping
When I export from Keynote into SWF, I get an odd audio looping problem when playing the SWF files. Here's the workflow:
Create Keynote presentation (includes transitions typically, but also happens with presentations that don't).
Record audio using Audacity, convert using iTunes to MP3 in order to be able to export from Keynote to Flash (Keynote can't export WAV files).
Drop in MP3s onto slides. Sync up my transitions with audio.
Export Keynote file to SWF, including the audio.
Play SWF file either directly using Safari or when posted using Firefox. Audio plays, but a certain length into the audio the audio file seems to re-initiate and play over itself.
Anybody seen this? Anyone know how to solve it?
This is pretty critical for us (work related). We are using Keynote to create educational content SWF files, and we only discovered this problem after release.
Thanks for your help!
MichaelThe helper class using IText:
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfImportedPage;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.PdfWriter;
public class PDFHealer
public static InputStream heal(InputStream in) throws DocumentException, IOException
try
ByteArrayOutputStream out = new ByteArrayOutputStream();
PdfReader reader = new PdfReader(in);
// we retrieve the total number of pages
int n = reader.getNumberOfPages();
// step 1: creation of a document-object
Document document = new Document();
// step 2: we create a writer that listens to the document
PdfWriter writer = PdfWriter.getInstance(document, out);
// step 3: we open the document
document.open();
// step 4: we add content
PdfContentByte cb = writer.getDirectContent();
int i = 0;
while( i < n )
document.newPage();
i++;
PdfImportedPage page1 = writer.getImportedPage(reader, i);
cb.addTemplate(page1, 0, 0);
// step 5: we close the document
document.close();
ByteArrayInputStream ret = new ByteArrayInputStream(out.toByteArray());
out.close();
return ret;
finally
in.close(); -
Problem with PDF export format
Using Mavericks and the latest version of Numbers, I have a problem when exporting a spreadsheet as a PDF. The spreadsheet is very simple and everything in it is formatted with a border around each cell (more like a 10 line/10 column table with borders). When I export it as a PDF the borders are there, but bolded, and the grid lines in the rest of the readsheet lines are also displayed in the PDF.
If I export the same spreadsheet to a PDF from Microsoft Word for Mac 2011, only the items that have borders show up, as I want it to be. Is there anyway to surpress the grid lines from showing up in the export from Numbers? All I want to display in the PDF are the cells with content that are bolded...not the grid lines in the rest of the spreadsheet.OK, I've figured out how to hide the cell borders when I export to PDF, but still there is a single border around the entire page...about where the margins are. It's light gray, so obviously another grid line, but this one I can't figure out how to hide.
-
Problems with PDFs, Reader, and Printing
My web application exports PDF files using SQL Server Reporting Services. The exported PDF files are version 1.3 (supposedly compatible with Adobe Acrobat version 4 and higher). Previously I used Crystal Reports which output PDF files as version 1.2.
This switch to 1.3 has caused havoc with SOME of my ASP (application service provider) customers because if they use Adobe Reader 8 to print the PDFs then they get obscure printing errors (the header of one page prints and then a printed error message of ERROR: Undefined COMMAND: 1b&) with certain Xerox workgroup printers (and not with most other printers). If they use Adobe Reader 7, then they have no problems at all with ANY of the printers.
So, at its core, this is a problem somewhere with Adobe PDF files, PDF versions, printers and their drivers, and the latest version of Adobe Reader (8.1.2). I would like to think that the latest version of any software should work better and my customers won't have to go back to Adobe Reader 7.0 to print things.
Is this a bug in Adobe Reader 8.1.2? What are the workarounds?
Thanks for any help.Not sure, but have you tried this patch: http://helpx.adobe.com/acrobat/kb/pdf-wont-print-reader-10.html ?
-
Problem with CR exporting and Excel formatting/merging
I'm currently running Visual Studio 2008 (Version 10 of CR). We have a Winforms application that runs various crystal reports I can't say there's anything particularly sophisticated about it. Just slap the report in a viewer, pass in the parameters, and run. As I've mentioned elsewhere I have not done much with CR (or Excel for that matter).
The problem is this. Our client is exporting certain reports to Excel, the 'full' version if that's the right term, not the data only option. The first field on every line of the detail is a text object consisting of several fields, concatenated. These fields combined form an ID number that we want to sort by. Unfortunately, so they tell me, this is currently impossible because in the export, the number occupies two columns and they are not merged. (Actually it doesn't look like any of the report columns bear any relation to any of the Excel columns.)
I always thought Excel export was one of those black box extras.
Now I have to ask, is there any way to customize it, programmatically or otherwise? (Am I overlooking any options?)
(Digging a bit deeper, could there be something in the CrystalDecisions API that I could use? Not sure I see anything useful in the ExcelExportOptions object yet.)
Edited by: BChernick on Jul 8, 2011 3:09 PM[SAP Crystal Reports Design|SAP Crystal Reports; forum.
- Ludek
Edited by: Don Williams on Jul 8, 2011 11:05 AM -
Problems with jpg export and color profiles
I browsed the forum but I didn't find any recent thread about the issue I'm experiencing right now, I wonder if it's common or it just affects me. Mavericks, Aperture 3.5, all up-to-date.
I imported a RAW file (I tried with both a Nikon and a Sony camera), made a few adjustements and then exported the picture as a jpg. It looked good in the Finder, in Photoshop, in Preview. When I uploaded the file to flickr, everything was ok.
Then, I browsed flickr via its iOS app and - surprise - the image is completely wrong: colors are washed out, desaturated, with an awful greenish dominance. I tried a few things and discovered soon that also opening the file on my Mac with GraphicConverter has the same ugly result. Same with the iOS version of Safari.
I use ProPhoto RGB as my default color space in Aperture. I changed to sRGB: same result. I changed to AbobeRGB and te output is finally consistent through all the platforms and apps.
Too bad I managed to do this only for one photo because, even if I changed the settings, every other photo I exported is still sticking with ProPhoto RGB. The problem is surely here because I solved it changing manually the color space to AdobeRGB with Pixelmator and re-saving the images one by one. But of course this cannot be a successful workflow...
Any experience about this?
Thank you!OK, I can reply to myself. The issue has mysteriously gone away - no idea why. Edit: The issue is gone on Desktop, with GraphicConverter. From iOS, pictures still look weird.
About the exported default, my bad: I was using presets and they choose their own settings for color space. Still, no idea why the first one was exported in Adobe RGB instead of ProPhoto RGB (the default for "JPEG - fit within 2048x2048").
Message was edited by: difool -
OrgChart : Problem with PDF export
Hello,
I have installed Nakisa OrgChart 2.0 accelerated. I also have installed the export pack 3.0.
When exporting pdf, I'm getting an error message. Nakisa logs show the following entries :
ERROR: PDF : generatePDF : HTML render is blank.
ERROR: Printing : generatePDF : PDF conversion failed, no output PDF file was created.
Have any of you ever encountered such issue?
Any feedback greatly appreciated!
Thanks,
LaurentHi Laurent,
If you had issues implementing the Service Pack then it may not have been done correctly. It can be difficult to implement on already configured/customised builds and if you are experiencing problems you should roll-back and try to implement again. If you are still having problems you should get some experienced consultant to help.
EhP4 is not required for OrgChart 2.1, only for SuccessionPlanning 2.0 and 2.1. However, you may need ECC6.0 for OrgChart 2.1 as there are some transports that need to go into SAP.
I hope that helps.
Luke -
Problem in pdf export and subsequent selection
Well I'm starting to have a very bad weekend. I know I can do a lot of this in acrobat but that would defeat the point of why to use indesign.
My problem is as follows: There's a LOT of python tutorials in indesign formats at my work. Now the BIG problem is that python is dependent on white space on start of the line. But once in PDF format the text selection tool refuses to select the spaces at the start of the line.
If anybody of you has programmed python you'd know that's a bad thing indeed. So what we have now is thousands upon thousands of lines of examples the user can not easily select and copy paste into their use. Without spending a excessive amounts of adding spaces.
So apart of ditching using pdf and indesign as medium. Is there any easy way that i can:
1 ) Override the function of adobe reader. So it selects the whitespace
(I know its there if text touchup i can see it)
2 ) Instruct indesign to export a pdf text field out of a certain
paragraph style per paragraph.
Something other I can do? This is killing my entire workflow. Maybe theres a way you could autoswap the fields in script etc? I mean it must be readily apparent to even somewhat inexperienced computer user.
PS: im thinking maybe buttons that copy text to clipboard but that's not the most intuitive wayThe helper class using IText:
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfImportedPage;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.PdfWriter;
public class PDFHealer
public static InputStream heal(InputStream in) throws DocumentException, IOException
try
ByteArrayOutputStream out = new ByteArrayOutputStream();
PdfReader reader = new PdfReader(in);
// we retrieve the total number of pages
int n = reader.getNumberOfPages();
// step 1: creation of a document-object
Document document = new Document();
// step 2: we create a writer that listens to the document
PdfWriter writer = PdfWriter.getInstance(document, out);
// step 3: we open the document
document.open();
// step 4: we add content
PdfContentByte cb = writer.getDirectContent();
int i = 0;
while( i < n )
document.newPage();
i++;
PdfImportedPage page1 = writer.getImportedPage(reader, i);
cb.addTemplate(page1, 0, 0);
// step 5: we close the document
document.close();
ByteArrayInputStream ret = new ByteArrayInputStream(out.toByteArray());
out.close();
return ret;
finally
in.close(); -
Problem with Windows Vista Server 2008 - Font characters replaced with square blocks on login screen
Hi! Last week, I set up a server for a client (Windows Vista Server 2008). Everything was working fine until this week when I did a remote login, and the server's screen shows all blocks instead of character (ie. "Administrator" shows up as Rectangular blocks) - and when I type in the password box, my characters come out the same blocks. The computer lets me login like this but then when the desktop displays, all texts is Blocks - like the windows default font is missing.
Anybody else run into this mystery and is there a fix?
Thanks.Hello,
Based on my experience, this issue might be caused by compatibility issues of video card driver and language options settings.
I’d like to suggest you try the following steps to fix the issue.
1. Please check whether you have installed correct video card drivers on both client and server machines. You’d better download the latest drivers from Video card manufacture and reinstall the drivers on both of the machines.
2. Please confirm whether the regional and language options settings on client and server machines are the same. If not, please temporarily change the settings on two machines to be the same and have another test.
3. If you use some third-party remote desktop connection tools to connect to the server, please have another try with Windows build-in remote desktop connection.
I hope this helps, thanks.
Regards,
Neo Zhu -
I have used this feature numerous times with no problems. Starting yesterday, when I export html bookmark file, I get a delay - and then the html file is extraordinarily large (16,400 KB versus 782 KB normal file size).
Also, when I attempt to import a saved html file, the new file will not save. Again, when I hit the "Export" or "Import"button, there is a prolonged delay.
Should I delete Mozilla and reinstall ?Hi mrpetesix,
Thanks for the insight. I seem to have solved the problem and can now sync iCal with my phone's calander as I used to without using iCloud. I am running the same setup as you (iTunes 11.0.1, osx 10.6.8, iOS 6.0.1) so, if you want, I'm sure you can do this too (although it seems you now hae found a good solution yourself). Anyway, here it is for the archives:
When my phone was connected to iTunes, iTunes was showing that my Calander was being updated over the air by iCloud. It was not giving me any other options to choose which calanders to sync etc. So...
On your iPhone, go to settings>>iCloud and turn calandars OFF.
Now when you connect it to iTunes you can see all the old options under calandars and syncing between the two devices is back to 'normal'.
I don't know when this iCloud setting got switched on my phone (I didn't even know it existed before this episode), probably when I updated iOS/iTunes recently.
Hope that's useful to somebody. Cheers.
Maybe you are looking for
-
Remove data plan from family plan with basic phones?
Is there a way to remove a data plan from a family plan with just basic phones on it? We used to have a $20/month basic plan until we had to get a data plan for our son's iPhone. He no longer has the iPhone with Verizon and has removed his line from
-
Pointer to structure, retrieve into a cluster
I have a DLL that returns a pointer to an array of pointers. Each pointer in this array points to a structure. How do I access/display the contents of the structures in a cluster?
-
Using read() to get byte and readLine to get textline at the same socket
Hi: I know that readLine is used in BufferedReader and read is used in BufferedInputstream, but can I read some lines by readline, then read some byte by read. Because InputStreamReader is used to change from Inputstream to Reader ,how can I change f
-
i m using submit repname.....exporting list to memory in my BSP page..then using write_list / disply_list i want to disply the exported abaplist . But write_list / display_list doesnt work in layout.. can not display screen with plugins is the error
-
hi everyone, is there anyway i could find a routing for simple mathematical functions like addition, subtraction, divison and mutliplication? please send me the routines people. thanx in advance