Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.PdfBorderDictionary


                        if (targetArea == null) {
                            return;
                        }
                        PdfAnnotation annot = PdfAnnotation.createLink(
                                _writer, targetArea, PdfAnnotation.HIGHLIGHT_INVERT, action);
                        annot.setBorderStyle(new PdfBorderDictionary(0.0f, 0));
                       
                        _writer.addAnnotation(annot);
                    }
              } else if (uri.indexOf("://") != -1) {
                    PdfAction action = new PdfAction(uri);
                   
                com.lowagie.text.Rectangle targetArea = checkLinkArea(c, box);
                    if (targetArea == null) {
                        return;
                    }
                PdfAnnotation annot = PdfAnnotation.createLink(
                    _writer, targetArea, PdfAnnotation.HIGHLIGHT_INVERT, action);
               
                    annot.setBorderStyle(new PdfBorderDictionary(0.0f, 0));
                   
                    _writer.addAnnotation(annot);
              }
            }
        }
View Full Code Here


            field.setWidget(new LwgRectangle(171, 750, 342, 769), PdfAnnotation.HIGHLIGHT_INVERT);
            field.setFlags(PdfAnnotation.FLAGS_PRINT);
            field.setFieldName("ATextField");
            field.setValueAsString(text);
            field.setDefaultValueAsString(text);
            field.setBorderStyle(new PdfBorderDictionary(2, PdfBorderDictionary.STYLE_SOLID));
            field.setPage();
            PdfAppearance tp = cb.createAppearance(171, 19);
            PdfAppearance da = (PdfAppearance)tp.getDuplicate();
            da.setFontAndSize(helv, fontSize);
            da.setColorFill(textColor);
View Full Code Here

                        if (targetArea == null) {
                            return;
                        }
                        PdfAnnotation annot = PdfAnnotation.createLink(
                                _writer, targetArea, PdfAnnotation.HIGHLIGHT_INVERT, action);
                        annot.setBorderStyle(new PdfBorderDictionary(0.0f, 0));
                       
                        _writer.addAnnotation(annot);
                    }
              } else if (uri.indexOf("://") != -1) {
                    PdfAction action = new PdfAction(uri);
                   
                com.lowagie.text.Rectangle targetArea = checkLinkArea(c, box);
                    if (targetArea == null) {
                        return;
                    }
                PdfAnnotation annot = PdfAnnotation.createLink(
                    _writer, targetArea, PdfAnnotation.HIGHLIGHT_INVERT, action);
               
                    annot.setBorderStyle(new PdfBorderDictionary(0.0f, 0));
                   
                    _writer.addAnnotation(annot);
              }
            }
        }
View Full Code Here

        Rectangle targetArea = outputDevice.createLocalTargetArea(c, box);
        field.setWidget(
                targetArea,
                PdfAnnotation.HIGHLIGHT_INVERT);       
        field.setFieldName(getFieldName(outputDevice, elem));
        field.setBorderStyle(new PdfBorderDictionary(0.0f, 0));

        String value = getValue(elem);
       
        field.setDefaultValueAsString(value);
        field.setValueAsString(value);
View Full Code Here

    field.setWidget(outputDevice.createLocalTargetArea(c, box),
        PdfAnnotation.HIGHLIGHT_INVERT);
    field.setFieldName(getFieldName(outputDevice, e));

    field.setBorderStyle(new PdfBorderDictionary(0.0f, 0));

    field.setValueAsName(checked ? onValue : OFF_STATE);
    field.setAppearanceState(checked ? onValue : OFF_STATE);

    if (isReadOnly(e)) {
View Full Code Here

            field.setWidget(new Rectangle(171, 750, 342, 769), PdfAnnotation.HIGHLIGHT_INVERT);
            field.setFlags(PdfAnnotation.FLAGS_PRINT);
            field.setFieldName("ATextField");
            field.setValueAsString(text);
            field.setDefaultValueAsString(text);
            field.setBorderStyle(new PdfBorderDictionary(2, PdfBorderDictionary.STYLE_SOLID));
            field.setPage();
            PdfAppearance tp = cb.createAppearance(171, 19);
            PdfAppearance da = (PdfAppearance)tp.getDuplicate();
            da.setFontAndSize(helv, fontSize);
            da.setColorFill(textColor);
View Full Code Here

                            targetArea.setBorderWidth(0);

                            PdfAnnotation annot = new PdfAnnotation(_writer, targetArea.getLeft(), targetArea.getBottom(),
                                    targetArea.getRight(), targetArea.getTop(), action);
                            annot.put(PdfName.SUBTYPE, PdfName.LINK);
                            annot.setBorderStyle(new PdfBorderDictionary(0.0f, 0));
                            annot.setBorder(new PdfBorderArray(0.0f, 0.0f, 0));
                            _writer.addAnnotation(annot);
                        }
                    }
                } else if (uri.indexOf("://") != -1) {
                    PdfAction action = new PdfAction(uri);

                    com.lowagie.text.Rectangle targetArea = checkLinkArea(c, box);
                    if (targetArea == null) {
                        return;
                    }
                    PdfAnnotation annot = new PdfAnnotation(_writer, targetArea.getLeft(), targetArea.getBottom(), targetArea.getRight(),
                            targetArea.getTop(), action);
                    annot.put(PdfName.SUBTYPE, PdfName.LINK);

                    annot.setBorderStyle(new PdfBorderDictionary(0.0f, 0));
                    annot.setBorder(new PdfBorderArray(0.0f, 0.0f, 0));
                    _writer.addAnnotation(annot);
                }
            }
        }
View Full Code Here

        // won't have enough radio buttons to matter
        Rectangle bounds = box.getContentAreaEdge(box.getAbsX(), box.getAbsY(), c);
        PageBox page = c.getRootLayer().getPage(c, bounds.y);
        field.setPlaceInPage(page.getPageNo()+1);

        field.setBorderStyle(new PdfBorderDictionary(0.0f, 0));

        field.setAppearanceState(fieldElem == checked ? onValue : OFF_STATE);

        if (isReadOnly(e)) {
            field.setFieldFlags(PdfFormField.FF_READ_ONLY);
View Full Code Here

TOP

Related Classes of com.lowagie.text.pdf.PdfBorderDictionary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.