Problem with printing files created by tcpdf class
Hello,
I have problem with printing pdf files created with tcpdf php class which contain embedded fonts
http://www.tecnick.com/pagefiles/tcpdf/example_008.pdf
Could someone try to print that example file at his Reader (printing to file .ps will be fine).
I'm trying to determinate if problem is in my system (Ubuntu 8,04) in Reader or in class.
Thanks in advance
No problem with Adobe Reader 8 or 9 .
Similar Messages
-
Problem with PDF files created by Indesign
PDF files created by Adobe Indesign come up as blank pages whereas PDF files created by Mac OS X or Apple's Pages display OK. Is there a difference in the way PDF files are created?
No problem with Adobe Reader 8 or 9 .
-
Problem with printing dynamically created pages
Hello,
I have created a form in Designer 7.1 with one page. When clicking the Print button the script generates additional pages with the instance manager (addInstance) and then I want to print the generated pages. However, when using 'xfa.host.numPages - 1' in the print statement only the first page is printed. When I use a static end value, I get an error message with 'wrong end value for print'. Does anybody know, what I have been missing?
Thanks, KarinNo problem with Adobe Reader 8 or 9 .
-
Problem with printing pdf file
hello,
lately i have problem with printing pdf file:
i click on the print button and the respod is very slow
it takes more than a minute till the print window apears.
i tryied to install version X but it's the same, the problem exist only when printing via adobe reader,
other programs i'd working much faster.
please advice,
thank youNo, it is not set to overprint. Also, I have to add that the printing results were not consistent. Sometimes it covered and sometimes it did not.
-
Problem with printing txt file
I have a problem with printing txt file. My code looks like :
String filename = something.txt";
DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
PrintService[] services = PrintServiceLookup.lookupPrintServices(
flavor, null);
PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
pras.add(PrintQuality.DRAFT);
pras.add(new Copies(1));
pras.add(MediaSizeName.ISO_A4);
pras.add(Sides.ONE_SIDED);
pras.add(Chromaticity.MONOCHROME);
PrintService service = ServiceUI.printDialog(null, 200, 200,
services, services[0],
null,
pras);
if (service != null)
try
DocPrintJob job = service.createPrintJob();
FileInputStream fis = new FileInputStream(filename);
DocAttributeSet das = new HashDocAttributeSet();
Doc doc = new SimpleDoc(fis, flavor, das);
job.print(doc, pras);
Thread.sleep(10000);
catch(FileNotFoundException e)
catch(PrintException e1)
catch(InterruptedException e2)
It doesn't work :(
What is my purpose: I would like to print .txt file but I would like to get PrintDialog where I can choose PrintQuality, Chromaticity etc. I found also that I should use DocFlavor.INPUT_STREAM.TEXT_PLAIN_HOST but I don't know how.
I will be very gratefull for help :)I tested it on 3 printers (different models of hp). 2 of them don't give me any error but when it started print priter stoped (just as it dosesn't have a paper), but 1 of them doesn't react (there were no errors), i thought tahat something was wrong with printers but when I change DocFlavor.INPUT_STREAM.AUTOSENSE to DocFlavor.GIF and filename to dog.gif it works so mybe there is another way to print txt file
-
Open Create Replace problems with saving file patterns
Hello, I got a problem with open/replace/create function. Could you please clarify each function how it works? As you can see in my file, I try to save into the specified file path. The values appear in the text file but when I change some values in the data mainstream, it replaces the old value it has been. I want to have the whole data in one file till I close it and open another file for the operation.
How can I do it??
Thank you
Solved!
Go to Solution.
Attachments:
Values Measurement 1-main.vi 34 KBHi,
I can't see your VI as it is in a newer version of LabVIEW than I have, so if you want any more specific help you'll need to save the VI as a previous version. (File -> Save as previous version) I have LabView 2009.
However, I have made a quick little example you could use. You don't need to use Set File Position if you use Shift Registers, as shown in the attached picture.
David.
Attachments:
WritetoFile-simple.png 21 KB -
Hi All,
I'm developing a web application written in J2EE that uses Java Reporting Component (JRC) to display crystal reports from some filters recovered from a jsp and passed to a report .rpt previously designed and invoked just at runtime.
I have a problem with printing a PDF:
I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
Can anyone help me?
I wish a great day to You all.Hi Ted Ueda,
sorry for the delay of my answer.
I understand very well the problems related to security.
With the following code that I used to produce a report (PDF) at runtime,
is the PDF created on the server and then sent to the client, or is it directly created on the client as PDF
from RTF previously realized?
ReportExportControl exportControl = new ReportExportControl();
String report = report path;
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(report, OpenReportOptions._openAsReadOnly);
Object reportSource = null;
reportSource = reportClientDoc.getReportSource();
//The method setConnectionProperties() stores all the connection parameters in the collection
//ConnectioInfos
ConnectionInfos connInfos = setConnectionProperties(request, reportClientDoc);
exportControl.setEnableLogonPrompt(false);
exportControl.setEnableParameterPrompt(false);
exportControl.setReportSource(reportSource);
exportControl.setDatabaseLogonInfos(connInfos);
//Single method to pass parameters to Crystal Reports. Using classes ParameterFieldController and
//ParameterFieldDiscreteValue
setReportParametersValue(reportClientDoc, reportParameters, subReportParameters);
ExportOptions exportOptions = new ExportOptions();
//Set the export format (PDF)
exportOptions.setExportFormatType(ReportExportFormat.PDF);
PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
exportOptions.setFormatOptions(PDFExpOpts);
exportControl.setExportOptions(exportOptions);
exportControl.setExportAsAttachment(true);
try {
exportControl.getHtmlContent(request, response, getServletConfig().getServletContext());
} catch (ReportSDKExceptionBase e) {
throw new ApplicationException("error code", ": error message"); }
As, however, I predicted in my previous message about the direct printing on the client,
I read about ActiveX, but I don't know how to use them.
I read this information in the 'Crystal Reports for Eclipse Developer Guide' about "printMode" attribute:
"In ActiveX print mode, an ActiveX control is downloaded to the client machine and the report is send directly to the printer...."
The ActiveX alternative is a java applet that runs on the client and takes the pdf from the server and prints directly onto the clients through the commands that I used in the DOS command line:
1) AcroRd32.exe /p /h FILENAME
where
/p = print
/h = hide window
to print the report and
2) tkill AcroRd32
to close Adobe Reader, because it doesn't end automatically after printing and the command /h is used just to minimize the process.
I hope you can give me advice because I need to print directly on the client. Thank you -
Problem with printing from Acrobat Reader XI
SInce I installed Acrobat Reader XI I have got problems with printing out pages. The text starts a bit down (2 cm) on the paper, resulting that the last part of the text on the page will be missing. And the missing part does not follow on page 2, it just don´t comes out!
It doesn´t matter what settings i click in on the print setting page in Acrobat Reader, it always gets the same result.
Does anyone know what can be the problem?No files appeared in C:\Users\Pavilion\AppData\Roaming\Adobe\Adobe PDF\Settings but they did appear in Distiller.
I tried to copied them from C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Settings, but found they were already there. I copied them by adding -COPY before .joboptions in the name. Now they appeared in Printing Preferences with the -COPY added.
I tested a print from Word (using File / Print), but was not prompted for the filename or location. I checked my entire system and couldn't find the PDF file anywhere. I tried changing the Port to Desktop\*.pdf using Printer Properties, but that didn't work either.
I was able to successfully use the Acrobat menu item in Word & Excel to create a PDF but it automatically created the file on the Desktop without an option to change the filename.
After several days and hours, I gave up and installed Acrobat X on the W7 computer. I can still use Acrobat XI on the W8 computer. So be it!
Thanks anyway for your attempts to help. -
Problems with compressing files with right hand click. it does not work.
Problems with compressing files with right hand click.
I am using the compress function in the Mac OS (File > Compress XX) from time to time. Today it does not work anymore. OS 10.5.6
I get a message: The content list cannot be created for compressing.
I tried it with files and folders and keep getting this message. Anybody any idea as to how to fix thisThanks I love my macbook!!!!
I also got further problems such as copy-paste not working etc.
so I fixed it just this morning by running Applejack 1.5 and am back up running noticing your post.
thanks for helping though! -
Problem opening PC files created on latest version of CS5 on Mac
Hi.
We´re a creative team in my company of four people, three mac users and one pc user. We recently all subscribed to the creative cloud so that we allways have the latest version of CS5, but there seems to be a problem with all files edited or created from the PC user.
We've (mac users, all three) tried to open the files either created or edited by the PC user and we're told that this was created by a newer version and is not possible. Trying to understand why this message occure when all three macs where updated with creative cloud after the PC user.your title is confusing.
the pc user is using cc 2014 apps, correct?
the mac users are using cc 2014 apps, correct?
if so, there should be no problem.
if someone is using cs5 to try and open a file created by a cc 2014 app, you will see the problem you described. -
Problem with printing ALV lists
Hey Guys,
I have a problem with printing ALV lists ,
I created a report with several ALV lists (not grids) on the same screen but when i attempt to print the report
it prints each alv list on a different page..so if i have 3 alv lists in the same report it will print the report on 3 pages
How can i print them all in one page?
Thanks in advance
Noha Salah.Hey Max,
I tried setting the Layout-list_append before my block_list_append function call
And setting the is_print-NO_NEW_PAGE , it printed the 3 lists on one page the only problem i have
is that the lists are truncated and the list formats has totally been messed up..how can i restore them back
to their original format? -
Problem with import file type setting
Problem with import file type settings - In preferences>general I select "wav encoder" But then going to tools>Create it still says "create mp3 version".
Can't find a way to overcome this. Thanks for any help.Doublechecking, roy. After making the preferences change, are you leaving the General tab by clicking the OK button down the bottom-right-hand corner of the tab?
-
Problem with URL File download
Hi every one i am facing a problem with URL File read Technique
import java.awt.Color;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
public class JarDownloader
boolean isSuccess = false;
public JarDownloader(String url)
downloadJar(url);
public boolean isDownloadingSuccess()
return isSuccess;
private File deleteExistingFile(String filename)
File jarf = new File(filename);
if(jarf.exists())
jarf.delete();
return jarf;
public static void main(String args[]){
new JarDownloader("url/filename.extension");
private void downloadJar(String url)
try
URL jarurl = new URL(url);
URLConnection urlc = jarurl.openConnection();
urlc.setUseCaches(false);
urlc.setDefaultUseCaches(false);
InputStream inst = urlc.getInputStream();
int totlength = urlc.getContentLength();
System.out.println("Total length "+totlength);
// If the size is less than 10 kb that means the linkis wrong
if(totlength<=10*1024)throw new Exception("Wrong Link");
JFrame jw =new JFrame("Livehelp-Download");
JPanel jp =new JPanel();
jp.setLayout(null);
JLabel jl = new JLabel("Downloading required file(s)...",JLabel.CENTER);
jl.setBounds(10,10,200,50);
jp.add(jl);
JProgressBar jpbar = new JProgressBar(0,totlength);
jpbar.setBorderPainted(true);
jpbar.setStringPainted(true);
jpbar.setBounds(10,70,200,30);
jpbar.setBackground(Color.BLUE);
jp.add(jpbar);
jw.setContentPane(jp);
jw.pack();
jw.setResizable(false);
jw.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
jw.setLocationRelativeTo(null);
jw.setSize(220,150);
jw.setVisible(true);
int readlngth=0;
int position=0;
byte[] readbytes = new byte[totlength];
while(totlength-position > 0)
readlngth = inst.read(readbytes,position,totlength-position);
position+=readlngth;
jpbar.setValue(position);
File jarf = deleteExistingFile(filename);
jarf.createNewFile();
//FileWriter fwriter=new FileWriter(jarf,true);
FileOutputStream fout = new FileOutputStream(jarf,true);
DataOutputStream dout = new DataOutputStream(fout);
dout.write(readbytes);
dout.flush();
dout.close();
inst.close();
jw.setVisible(false);
jw.dispose();
isSuccess=true;
}catch(Exception ex)
isSuccess=false;
}From the above code i received the total length of the PAGE content (i.e here url is a file) when i tried to find the size of that file it return -1.
please help meI think the real problem is that you don't check the return value from read (it's probably less than data.length indicating an incomplete read). Isn't there a readFully somewhere?
-
Problem with printing graphics in SAP Script
Hi,
I am facing problem with printing of graphics in SAP Script. I uploaded a bitmap file from pc to se78. Then I inserted it in SAP script.
I am able to view it in the printpreview as well as in the spool number. But it is not getting printed.
Plese tell me the solution.
Thanks,
SrinivasYou need to check your printer settings.Might be drivers are missing.
-
Problem with printing more than one page (ghostscript broken?)
Hello,
since one of the last package updates I have problems with printing more than one page. The print problems occurs as well with pdf files as well with printing websites. I use an actual KDE system with commercial turboprint printer driver. The first page always prints fine, but all consecutive pages are corrupted. As from a similar problem some months ago, I assume a broken ghostscript package. I tried to downgrade ghostscript to check that, but I get depency problems:
root@arch32 dieter]# ls -l /var/cache/pacman/pkg/ghostscript-*
-rw-r--r-- 1 root root 9906288 21. Mär 2010 /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
-rw-r--r-- 1 root root 11402624 8. Okt 22:44 /var/cache/pacman/pkg/ghostscript-9.00-1-i686.pkg.tar.xz
[root@arch32 dieter]# pacman -U /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
Löse Abhängigkeiten auf...
Suche nach Zwischen-Konflikten...
Fehler: Konnte den Vorgang (Kann Abhängigkeiten nicht erfüllen) nicht vorbereiten
:: libspectre: benötigt ghostscript>=9.00
[root@arch32 dieter]#
Anyone else having printing problems or a solution for my problem?
Thanks, DieterThis may not be related but I had a problem printing a pdf today whereby the second page got corrupted. The same pdf had printed fine several months ago. I realised that (long story) for some reason I had switched drivers (HP printer) from hpijs to hpcups. I installed the printer again as a "new" printer using the hpijs driver and it printed properly this time.
So it may be that the bug causes issues with some drivers. You could try an alternative driver for the printer as temporary workaround?
Maybe you are looking for
-
Updating a value of a text item in a multi record block based on a change
Hi, I need to change the value of a text item in a multi record block based on a change to another item's value in the same block. Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular
-
How do I move contacts from one list to another on my iPhone?
Can anyone help with tis question?
-
My macbook pro freezes in safari or google chrome or just shuts down all together
My MacBook Pro freezes constantly when using Safari or Google Chrome. I have to reset to continue with anything. It happens more often when using Java to play games and sometimes just closes the browser.
-
Help required -for MRP Run at storage location level
Hi , we need to have separate MRP fro two storage locations with direct procurement from Storage locations. Right now we have MRP run at Plant level for all the storage locations. we donot want the materials in these two storage locations to be plann
-
Halfway through 3GS 2 year contract, How much to upgrade?
I got a 2 year 3GS contract last year and now that the iPhone 4 is coming out, I am considering getting it but I don't know if there is any trade in scheme announced. My 3GS was £180 plus the extra amount each month. Does this mean I can buy the ipho