PDF to print with XSL - FO and FOP Apache

Can someone show me in the right direction for this? I was hitting a wall for 2 weeks or more and it is really starting to exasperate me. How am I supposed to come out? Where should I start? Let's say I create a page with a WYSIWYG editor XSL file, in which export format it? XSL and XSLT and XSL - FO? I thought it was XSL - FO, but who knows. I tried them all anyway, but nothing seems to work. I seem to be missing a step, or something, because something is certainly wrong.

I created a report query (which contains in fact two queries):
select distinct
V_Usager.NUMEROPERSONNE NoPersonne,
V_Usager.NOMUSUEL || ', ' || V_Usager.PRENOM Usager,
V_Usager.DATENAISSANCE DateNaissance,
V_Usager.DESCRIPTION Sexe,
ID_Demande,
NomNature || nvl2(PrecisionNature,', Précision: ' || PrecisionNature,'') Nature,
NomCadre,
decode(IND_Securitaire, 1, 'Oui', '0', 'Non') Securitaire,
NomRessource,
DT_Demande,
Note,

ltrim(decode(IND_DEMANDEIVAC,1,'Dossier IVAC','') || decode(IND_DEMANDEFLORES,1,', Dossier Florès','') || decode(IND_RISQUECRISE,1,', Risque de crise','') || decode(IND_MENOTTES,1,', Menottes nécessaires','') || decode(IND_ADRESSECONFIDENTIELLE,1,', Adresse confidentielle','') || decode(IND_TELEPHONECONFIDENTIEL,1,', Téléphone confidentiel','') || decode(IND_RISQUEFUGUE,1,', Risque de fugue','') || decode(IND_RISQUEVIOLENCE,1,', Risque de violence','') || decode(IND_MALDESTRANSPORTS,1,', Mal des transports','') || decode(IND_MEDICAMENT,1,', Médicament à remettre','') || decode(IND_SIEGE,1,'',2,', Siège fourni',3,', Siège d''enfant requis',4,', Siège de nouveau-né requis',5,', Siège d''appoint requis') || decode(IND_HANDICAP,1,'',2,', Handicap mental',3,', Handicap physique') || decode(IND_MEDICAMENT,1,', Médicament à remettre','') || decode(IND_JUMELER,1,'',2,', Ne pas jumeler',3,', Ne pas jumeler avec une fille',4,', Ne pas jumeler avec un garçon') || decode(IND_TRANSPORTEUR,1,'',2,', Transporteur féminin',3,', Transporteur masculin') || nvl2(REMARQUEPRECISIONS,', ' || REMARQUEPRECISIONS,''),',') Precisions,

Disp1.PRENOM || ' ' || Disp1.NOM SaisiePar,

Disp2.PRENOM || ' ' || Disp2.NOM || nvl2(Elem2.Description, ', ' || Elem2.Description,'') Requerant,

ltrim(nvl(NOMPERSONNEAVISER,'') || nvl2(TELEPHONEPERSONNEAVISER_1,' ' || substr(TELEPHONEPERSONNEAVISER_1,1,3) || '-' || substr(TELEPHONEPERSONNEAVISER_1,4,3) || '-' || substr(TELEPHONEPERSONNEAVISER_1,7,4),'') || nvl2(TELEPHONEPERSONNEAVISER_2,' ' || substr(TELEPHONEPERSONNEAVISER_2,1,3) || '-' || substr(TELEPHONEPERSONNEAVISER_2,4,3) || '-' || substr(TELEPHONEPERSONNEAVISER_2,7,4),''),',') PersonneAAviser

from 
TBL_Demande_1,
TBL_Demande_TRSP_1, 
V_Dispensateur Disp1, 
V_Dispensateur Disp2,
V_ElemStruct Elem2,
V_Usager,
TBL_CadresLegaux,
TBL_Natures,
TBL_Ressources

where 
DemandeID = :P7_IDDEMANDE
and ID_Demande = DemandeID
and ID_Usager = UsagerID
and ID_CLegal = IDCadre
and ID_Nature = IDNature
and IND_Ressource = IDRessource
and ID_Intervenant LIKE Disp1.NumeroDispensateur
and ID_SaisiePar LIKE Disp2.NumeroDispensateur
and Elem2.ElemStructID = ID_ElemStructSaisiePar
select 
to_char(DT_TRANSPORT, 'dd/mm/yyyy') || ' à ' || HR_TRANSPORT || nvl2(DUREE,' durée: ' || DUREE,'') DateTRSP,
decode(IND_TYPETRANSPORT,1,'Aller',2,'Retour',3,'Aller/Retour') TypeTransport,

case IND_TYPETRANSPORT
when 1 then
DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
when 2 then
DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
when 3 then
DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
end AdresseDEP,

case IND_TYPETRANSPORT
when 1 then
DEP_PRECISION
when 2 then
DEST_PRECISION
when 3 then
DEP_PRECISION
end ContactDEP,

case IND_TYPETRANSPORT
when 1 then
substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
when 2 then
substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
when 3 then
substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
end TelDEP,

case IND_TYPETRANSPORT
when 1 then
DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
when 2 then
DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
when 3 then
DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
end AdresseDEST,

case IND_TYPETRANSPORT
when 1 then
DEST_PRECISION
when 2 then
DEP_PRECISION
when 3 then
DEST_PRECISION
end ContactDEST,

case IND_TYPETRANSPORT
when 1 then
substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
when 2 then
substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
when 3 then
substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
end TelDEST,

decode(RET_NOM || ', ' || RET_ADRESSE || ', ' || RET_CPOSTAL, ', , ', '', RET_NOM || ', ' || RET_ADRESSE || ', ' || RET_CPOSTAL) AdresseRET,
RET_PRECISION ContactRET,
substr(RET_TELEPHONE,1,3) || '-' || substr(RET_TELEPHONE,4,3) || '-' || substr(RET_TELEPHONE,7,4) || nvl2(RET_POSTE,' poste ' || RET_POSTE,'') TelRET

from 
TBL_Demande_1,
TBL_Demande_TRSP_1

where 
DemandeID = :P7_IDDEMANDE
and ID_Demande = DemandeID
I then created a presentation of the State in XSL - FO with XSLfast, but it won't work at all. I always get the dreaded "file corrupted" when I test my PDF report... no idea why it does not work? I missed something obvious?

Best regards
Mathieu

I decided to buy FO Designer of the Java4Less. For $ 60, it's a flight, and it works well. Need to change a thing or not in the XSL - FO generated, but nothing too difficult at the moment.

Best regards
Mathieu

Tags: Database

Similar Questions

  • How can I export to PDF for printing Offset, including colors and grayscale of the photo?

    After reading dozens of forum, I not yet found the answer.

    I made a photo album with full-colur and b & w photos for Offset print. I want to be for the b & w grayscale avoid the hues of colors possible. It seems that InDesign does not support the shades of gray, how images become dark. Even with export without any conversion of color or the destination and/or including profiles of original colors, the images are exported to obscurity as a PDF to grayscale.


    How can I export to PDF for printing Offset, including colors and grayscale of the photo?

    Yes, Photoshop & ID CMYK working spaces are the same

    This can become difficult because 3 programs manage proofing differently.

    Work spaces don't matter, document profiles that handle the preview. So here's the same image in grayscale, placed in the ID on the top and PS on the bottom. I put my info in Photoshop to display the profile of doc in the lower left corner. I can see the profile of my InDesign CMYK Document in my test format (CMYK work is different and is not used). The two profiles are actually the same coated FOGRA39 (Black Ink FOGRA in the case of the PS).

    But the previews do not match because I disabled, so the preview InDesign is Gamma 2.2 or a "screen" media preview overprinting.

    If I turn on overprint preview, I get a match because I'm soft proofing for printing:

  • Some PDFS are print with empty boxes, replacing the text

    I have some of my electricity and gas supplier invoices and invoices are printed with squares displayed instead of text. I have already restored the book of fonts for the default fonts. I have no problem with the display of these bills on my computer. I have another PDF files and they all are printed correctly. If I open the PDF file that is badly printed and export it to PDF in PREVIEW app, the output is the same as on my printer. I tried to restore all the fonts by default those and I tried to reinstall OSX update with update combo, always the same.

    What else can I do to restore the normal print mode?

    Any who have had the same issue guys?

  • My document Pages when sent in PDF format opens with Acrobat Reader and displays the text pane

    Hey team

    I am a new user of recent Mac and I have some difficulty with the Pages.

    I'll create a new document and save it as a PDF file (save it to the desktop), when I open it again, it opens with Acrobat Reader and the text released along side this one pane. It does not open a document own stand alone. This cause me a problem when I want to send it as an attachment, as it includes this component, as well as all other toolbars with.

    Any help on this would be appreciated.

    SSA56,

    When you send the PDF document as an attachment, it will be sent as a document 'stand alone '. It will be open according to the preferences that are set by the receiving party.

  • DeskJet 3520: no black print with new ink and genuine cartridge is full

    No black print with genuine new cartridge ink level shows and complete.  Many other colors are printed. This happened after I made the print heads clean and clean ink smears.

    Thanks for the reply

    Now, if you were to call to our technical support team, they should be able to implement a replacement for you for this printer model, regardless of the status of the guarantee.

    Call them and let me know how things are going for you!

  • HP OfficeJet Pro 8620 color wireless Photo printer with Scanner, copier and fax machine (A7F65A #B1H)

    I want to buy HP printer OfficeJet Pro 8620 wireless color Photo with Scanner, copier and fax machine (A7F65A #B1H), but I want to know if the product can use photo cards to print photos. The product also allows to print normal word documents? Thanks to an expected answer.

    Chima.

    Hello

    First of all, it's a printer and Yes it can print Word documents, it can print photos on photo paper.

    Kind regards.

  • File to change PDF to print with a larger font

    I understand that with Adobe Acrobat 9 or X, we could be able to print a PDF with a larger font.  Is the only way because I don't have any other software - only the free player.  To retirement and visually impaired, I really want to pay the full purchase price.  I got the 4K eye surgeon...

    You talk about a type change function that is not part of Acrobat. Sorry, but extend the font size which would require also a reflow of the document is not appropriate in Acrobat action. If you can convert the PDF to WORD or Open OFFICE (may be able to open a PDF file in one of them - maybe but doubt actually), you could do the expansion in WORD or Open OFFICE (or free AGENCY). Another option could be to try to copy and paste from the PDF file to a word processor. Unfortunately, you often end up with a large number of symbols of paragraph at the end of each line and may have to do a reformat. Good luck.

  • Comments of print with extreme network and printer HP Envy 4520

    Project night and I have people coming. My comments and personal networks are set up. I have an extreme Airpot and a range of printers HP 4520. Is there a way that my guests and I can print from here. Other then to move networks back on my printer? I tell myself that I'm asking here before I ask HP. I seem to get better answers here. Thanks for any idea!

    Users connected to the network 'Guest' cannot 'see' all devices in the 'hand' or 'private '.  Only "see you" each other and connect to the Internet.

    Same thing for users on the hand, or a private network.

    If you want a user on the network to be able to print, then you will need to install a printer wireless network reviews.

    If users on the main network and the guest network printing, then you need a printer for each network.

    A Dingo workaround solution would be to ask him to send you an email with an attachment that you can print and give back their.

  • HP C309g: Problems printing with photo paper and not A4 paper

    My HP 309 g perfectly print a picture on A4 paper without flaws. However, whenever it prints the exact image even on HP Premium Plus photo paper, the colors are weird - not black, but the yellow blues and roses. I removed the print head and carefully cleaned and aligned the printer nothing helps. Verification of diagnosis HP shows no failure at all. The obvious flaw must be with the photo paper, but I am not convinced that this is the real problem. Can someone help with this really weird problem please?

    Hi @Quackers,

    Welcome to the HP Forums!

    I'm happy to help with your PS C309g

    I would normally be with you that photo paper would be at fault, but as HP paper, it should be good. I realize, this may be irrelevant, but make sure that you load the face of photo paper (print side) down so that it prints on the right side of the paper.

    If you load it properly however, which I am sure you are, I suggest that you try the steps in this document to solve the problems of quality Print to the HP Photosmart Premium all-in-One Printer Series (C309) .

    Let me know how things are going for you!

    Happy holidays!

  • With the help of a wireless printer with a laptop and desktop PC.

    I just bought a laptop wireless windows 7 and use a router to connect to my older vista desktop that has HP deskjetpro8500 on it. Should I upgrade my Vista to windows 7 and my printer upgrade then?  I'll be able to also use the fax, scanner and copier on the new laptop once I update the printer? What is my best option?

    Yorkville

    OK, unplug the USB cable from your printer and your PC.  Leave the telephone line connected like that.

    Now, to get an Ethernet cable (it looks like a large telephone cable) and plug it in between your router and the printer.  An alternative is to connect to the wireless printer, but it will have to have the wireless option.  This subtemplate is (a909a, n b or g)?

    After connecting the printer, click Start > Control Panel > devices and printers and delete all old instances of the printer, then:

    1. make sure the printer is on and connected to your network. Verify that you can access the printer's internal web page by accessing its IP address before continuing. (the IP address can be found on the network menu of the printer)
    2. click on > start > Control Panel > devices & Printers.
    3. click on add a printer
    4. Select local printer
    5. Select create a new port and select Standard TCP/IP Port, and click Next.
    6. under device type, select TCP/IP Device. Under the name of host or IP address, enter the IP address of the printer. Click Next.
    7. Select Hewlett-Packard in the list of manufacturers and select and select your printer model. Click Next.
    If your printer model is not in the list, then select disk provided, browse the CD that came with your HP printer and select the first file begins with hp and ending with INF. click Open, then OK. Select your printer model. Click Next.
    8. If prompted, use the driver that is currently installed.
    9. He will ask the name of the printer - enter a new name or use the one existing. This will be the name of the printer that you select from other applications.
    10. we may ask you to share the printer. Choose No.
    11. the printing area of Test Page is displayed. Go ahead and print it out.
    12. click on finish.

  • Cannot print with Windows 7 and Photosmart 7350

    Hello. Recently, I converted my laptop to Windows 7 Home Premium OS. I have no problem printing to work with this computer of our HP LaserJet but when I enter the problem starts. I have a wireless home network with my Photosmart 7350 connected to my desktop computer that is still running XP. The wizard sees the printer and adds but cannot print a test page. He says that it is waiting, then the print job disappears. I downloaded the Vista driver for the printer. When I run the troubleshooter, it cannot determine the problem. No surprise as convenience stores rarely did help. I got around the problem by sending documents to the desktop so far and then print it from there, but it gets old. Any ideas?

    Please install the printer on Windows 7 by using the following steps:

    http://support.HP.com/us-en/document/c01796821

  • Printing with windows 7 and HP Deskjet 710C

    I was able to load the driver for my HP Deskjet 710C printer but it won't print. It works with a different laptopwhich is also windows 7 but not this one. Help?

    Did you follow the course of HP to add the printer and the driver through windows update?

    http://h10025.www1.HP.com/ewfrf/WC/document?docname=c01874792&CC=UK&DLC=en&LC=en&os=4062&Product=59307&sw_lang=

    And if so if you clean the PC startup not him then to work, otherwise no error message?

  • M277dw MFP: Double-sided COPY (do not print) with the ADF and MFP M277dw color printer

    This unit can perform a copy front and back on a pile of documents front / back, loaded in the ADF? (I know that it is able to copy both sides of a single page).

    In the list of options in control panel touch control for "duplex", it has classified 2 options from which to choose:

    1 - face to face 1

    1 - face to face 2

    It seems that I need a "2-sided to 2 faces" option, correct?

    It seems that the device must be capable of 2 faces double-sided COPY and more double-sided printing.

    I tried several combinations of different settings but cannot figure it out (if it is even possible) to take a stack of documents face 2. Put them together in the ADF and the output device an identical pile of copies 2 faces.

    Thanks in advance for any help/suggestions.

    Hey @AA10,

    Welcome to the Forums of HP Support!

    I see you try to double-sided copy on your HP Color LaserJet Pro MFP M277dw. There the duplexer to print system which allows you to print 2 sides, but does not have a duplexer built-in automatic document feeder. That's why you miss the 2 head to head 2 under the menu copy option. The two-sided to 2 in the menu copy allows you to copy documents two unique faces the printer would then print 2 sides. You must copy a page at a time and return them to make Copies in duplex.

    Please let me know if you have found this information useful.

  • Can I set up my printer with USB port and wireless?

    Yes, you can connect your printer wirelessly to the top and the USB. If you have 1 computer connected to the USB printer, you can also download the software and drivers for computer #2 and wireless connection.

    On the printer, you will need to put it on the network (router).

    If you need assistance, please be sure to ask. You can connect several computers to the wireless printer, but could only be plugged into the USB cable.

    Hope this helps everyone.

  • How many pages you can print with 1 black and white cartridge on a HP Officejet 4500 Wireless

    I put in a new black cartridge and about 60 to 70 printed pages in the next 24 hours, after which I got a warning of low black ink on the printer.  Is this normal?

    Hello

    Based on the following link, can be up to 200 pages. But all the sellers quote only about 5% page coverage and without cleaning the heads.

    http://h10010.www1.HP.com/wwpc/au/en/Ho/WF06a/18972-18972-238444-3328086-3328086-3919445.html?DNR=1

    Normally, I hope we can get only about 50% to 70% of the number of pages cited. After receiving a low ink warning, you can continue to print for about 20 to 30 more pages.

    Kind regards.

Maybe you are looking for

  • Cannot print on firefox now blue arrow blinks and report in aspx?

    Until a few weeks before I could open a report in ADP and preview before printing but also print but now when I select print that flashes a blue arrow and no preview appears. When I click on the blue arrow (which is black, not not flashing) and a lis

  • Function keys do not work on my Satelite C50-A-1DV

    Hello I just installed a bios update (1.30) and right after that I noticed that I was unable to adjust the brightness of my screen via special keys (F2 and F3). Also, I am unable to use the rocking of the (F4) synaptic pointing device, monitor select

  • Taking iPad mini back to factory setting.

    someone has tried to take a mini to iPad 1st gen back to the factory settings. This could be the only way to get rid of the unwanted default apps like iBooks in IOS9. Default applications take about 20 GB of space for the 16 GB, even if they are not

  • hp3510: hp3510 copy function does not

    The paper feeds through but nothing prints New cartridges Print a file from the pc works

  • HP DV6 WINDOWS 8 DRIVERS

    Hi, I have a Hp Dv6-6100SE. I don't want to take any chances. Just help me Get the drivers so that I can easily update my laptop for Windows 8. And another problem I have is that I can't save my dv6. Tell me how to backup and how much memory does! Th